Fix bug that prevents ignoring of NICK messages.

check_ignore() returns IGNORED for that case, not zero.
This commit is contained in:
Kevin Easton
2015-05-10 14:22:12 +10:00
parent dea26d0c1c
commit 72f5536121
2 changed files with 6 additions and 4 deletions

View File

@@ -1,3 +1,7 @@
[Changes 1.2.2]
* Fix ignoring of nick changes. (caf)
[Changes 1.2.1] [Changes 1.2.1]
* Prefer <fcntl.h> over <sys/fcntl.h> (reported by ncopa). (caf) * Prefer <fcntl.h> over <sys/fcntl.h> (reported by ncopa). (caf)

View File

@@ -1369,8 +1369,6 @@ static void p_nick(char *from, char **ArgList)
ChannelList *chan; ChannelList *chan;
char *line; char *line;
line = ArgList[0]; line = ArgList[0];
if (!my_stricmp(from, get_server_nickname(from_server))) if (!my_stricmp(from, get_server_nickname(from_server)))
{ {
@@ -1378,7 +1376,7 @@ ChannelList *chan;
its_me = 1; its_me = 1;
nick_command_is_pending(from_server, 0); 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; goto do_nick_rename;
for (chan = get_server_channels(from_server); chan; chan = chan->next) for (chan = get_server_channels(from_server); chan; chan = chan->next)
{ {