Fix bug that prevents ignoring of NICK messages.
check_ignore() returns IGNORED for that case, not zero.
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
@@ -1366,10 +1366,8 @@ static void p_nick(char *from, char **ArgList)
|
|||||||
{
|
{
|
||||||
int one_prints = 0,
|
int one_prints = 0,
|
||||||
its_me = 0;
|
its_me = 0;
|
||||||
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)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user