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:
parent
4bb26bb951
commit
1b8e6d2e5b
@ -57,7 +57,8 @@ static void check_query_changes(IRC_SERVER_REC *server, const char *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 */
|
||||
query_change_address(query, address);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user