diff options
author | Curtis McEnroe | 2018-08-07 14:34:26 -0400 |
---|---|---|
committer | Curtis McEnroe | 2018-08-07 14:34:26 -0400 |
commit | 9ccb25a1a5589be4091b684fbde9b83800fe1f6e (patch) | |
tree | 97810fd60f7ff7d55c7fd9c1767a665e29d31e5e /handle.c | |
parent | 0b429a7ccc372a3d52445ab248d1299e9abd58db (diff) |
Fix /me formatting side-effects
NEVER pass side-effects to a macro.
Diffstat (limited to 'handle.c')
-rw-r--r-- | handle.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/handle.c b/handle.c index 23d3cba..8073758 100644 --- a/handle.c +++ b/handle.c @@ -217,7 +217,8 @@ static void handlePrivmsg(char *prefix, char *params) { char *mesg = shift(¶ms); if (mesg[0] == '\1') { strsep(&mesg, " "); - uiFmt("* \3%d%s\3 %s", color(user), nick, strsep(&mesg, "\1")); + char *action = strsep(&mesg, "\1"); + uiFmt("* \3%d%s\3 %s", color(user), nick, action); } else { uiFmt("<\3%d%s\3> %s", color(user), nick, mesg); } |