1
0
mirror of https://github.com/irssi/irssi.git synced 2024-12-04 14:46:39 -05:00

Don't crash if someone msgs you without host address (eg. dircproxy). Fix by

Antti.Siiskonen@tut.fi


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2886 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2002-08-26 15:12:32 +00:00 committed by cras
parent 4bb26bb951
commit 1b8e6d2e5b

View File

@ -57,7 +57,8 @@ static void check_query_changes(IRC_SERVER_REC *server, const char *nick,
query_change_nick(query, nick); query_change_nick(query, nick);
} }
if (query->address == NULL || strcmp(query->address, address) != 0) { if (address != NULL && (query->address == NULL ||
strcmp(query->address, address) != 0)) {
/* host changed */ /* host changed */
query_change_address(query, address); query_change_address(query, address);
} }