Fix /me formatting side-effects

NEVER pass side-effects to a macro.
This commit is contained in:
Curtis McEnroe 2018-08-07 14:34:26 -04:00
父節點 0b429a7ccc
當前提交 9ccb25a1a5
沒有發現已知的金鑰在資料庫的簽署中
GPG Key ID: CEA2F97ADCFCD77C

查看文件

@ -217,7 +217,8 @@ static void handlePrivmsg(char *prefix, char *params) {
char *mesg = shift(&params); char *mesg = shift(&params);
if (mesg[0] == '\1') { if (mesg[0] == '\1') {
strsep(&mesg, " "); 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 { } else {
uiFmt("<\3%d%s\3> %s", color(user), nick, mesg); uiFmt("<\3%d%s\3> %s", color(user), nick, mesg);
} }