Fix /me formatting side-effects

NEVER pass side-effects to a macro.
master
Curtis McEnroe 2018-08-07 14:34:26 -04:00
parent 0b429a7ccc
commit 9ccb25a1a5
No known key found for this signature in database
GPG Key ID: CEA2F97ADCFCD77C
1 changed files with 2 additions and 1 deletions

View File

@ -217,7 +217,8 @@ static void handlePrivmsg(char *prefix, char *params) {
char *mesg = shift(&params);
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);
}