diff options
author | Timo Sirainen <cras@irssi.org> | 2000-12-19 17:27:23 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2000-12-19 17:27:23 +0000 |
commit | 01d4c070e3fd24922bf9d42b8960d88ecb9039d7 (patch) | |
tree | c1026f4db72d77e6a66c079062c6ad71e3e2ffc2 /src/fe-common/irc/fe-irc-queries.c | |
parent | 4957c7b98be63047d1ab9662f38214ce439493d8 (diff) | |
download | irssi-01d4c070e3fd24922bf9d42b8960d88ecb9039d7.zip |
Don't check queries whose address isn't known yet.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1013 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/fe-common/irc/fe-irc-queries.c')
-rw-r--r-- | src/fe-common/irc/fe-irc-queries.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/fe-common/irc/fe-irc-queries.c b/src/fe-common/irc/fe-irc-queries.c index 50236cf2..2cc81ecf 100644 --- a/src/fe-common/irc/fe-irc-queries.c +++ b/src/fe-common/irc/fe-irc-queries.c @@ -34,7 +34,8 @@ static QUERY_REC *query_find_address(SERVER_REC *server, const char *address) for (tmp = server->queries; tmp != NULL; tmp = tmp->next) { QUERY_REC *rec = tmp->data; - if (*rec->name != '=' && g_strcasecmp(address, rec->address) == 0) + if (*rec->name != '=' && rec->address != NULL && + g_strcasecmp(address, rec->address) == 0) return rec; } |