From 72f55361211f0fc546688c960746c74c30c8b70a Mon Sep 17 00:00:00 2001 From: Kevin Easton Date: Sun, 10 May 2015 14:22:12 +1000 Subject: [PATCH] Fix bug that prevents ignoring of NICK messages. check_ignore() returns IGNORED for that case, not zero. --- Changelog | 4 ++++ source/parse.c | 6 ++---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/Changelog b/Changelog index 3f47e26..bd8305a 100644 --- a/Changelog +++ b/Changelog @@ -1,3 +1,7 @@ +[Changes 1.2.2] + +* Fix ignoring of nick changes. (caf) + [Changes 1.2.1] * Prefer over (reported by ncopa). (caf) diff --git a/source/parse.c b/source/parse.c index 8614224..d690ce9 100644 --- a/source/parse.c +++ b/source/parse.c @@ -1366,10 +1366,8 @@ static void p_nick(char *from, char **ArgList) { int one_prints = 0, its_me = 0; -ChannelList *chan; + ChannelList *chan; char *line; - - line = ArgList[0]; if (!my_stricmp(from, get_server_nickname(from_server))) @@ -1378,7 +1376,7 @@ ChannelList *chan; its_me = 1; nick_command_is_pending(from_server, 0); } - if (!check_ignore(from, FromUserHost, NULL, IGNORE_NICKS, NULL)) + if (check_ignore(from, FromUserHost, NULL, IGNORE_NICKS, NULL) == IGNORED) goto do_nick_rename; for (chan = get_server_channels(from_server); chan; chan = chan->next) {