Ignore NOTICEs not sent to the channel

master
Curtis McEnroe 2018-08-03 19:34:28 -04:00
parent 0e99c48912
commit 18dcb256ac
No known key found for this signature in database
GPG Key ID: CEA2F97ADCFCD77C
1 changed files with 4 additions and 3 deletions

7
chat.c
View File

@ -365,9 +365,10 @@ static void handlePrivmsg(char *prefix, char *params) {
static void handleNotice(char *prefix, char *params) { static void handleNotice(char *prefix, char *params) {
char *nick = prift(&prefix); char *nick = prift(&prefix);
char *user = prift(&prefix); char *user = prift(&prefix);
shift(&params); char *chan = shift(&params);
char *message = shift(&params); char *mesg = shift(&params);
uiFmt("-\3%d%s\3- %s", color(user), nick, message); if (strcmp(client.chan, chan)) return;
uiFmt("-\3%d%s\3- %s", color(user), nick, mesg);
} }
static const struct { static const struct {