diff options
author | Timo Sirainen <cras@irssi.org> | 2000-12-17 01:37:12 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2000-12-17 01:37:12 +0000 |
commit | 3011d2c01c9df4dc0da2efb2cd33b2956c09fa8d (patch) | |
tree | 1a9da341bf822781591190de0d0081811f6d71de /src | |
parent | 2523a02104fbc885138d1e63016bace31734b124 (diff) | |
download | irssi-3011d2c01c9df4dc0da2efb2cd33b2956c09fa8d.zip |
removed useless chat_type checks
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@998 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src')
-rw-r--r-- | src/core/channels.c | 3 | ||||
-rw-r--r-- | src/core/queries.c | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/src/core/channels.c b/src/core/channels.c index 3214a389..d1c6f66f 100644 --- a/src/core/channels.c +++ b/src/core/channels.c @@ -100,8 +100,7 @@ static CHANNEL_REC *channel_find_server(SERVER_REC *server, for (tmp = server->channels; tmp != NULL; tmp = tmp->next) { CHANNEL_REC *rec = tmp->data; - if (rec->chat_type == server->chat_type && - g_strcasecmp(name, rec->name) == 0) + if (g_strcasecmp(name, rec->name) == 0) return rec; } diff --git a/src/core/queries.c b/src/core/queries.c index 9be0f156..92f791d5 100644 --- a/src/core/queries.c +++ b/src/core/queries.c @@ -95,8 +95,7 @@ static QUERY_REC *query_find_server(SERVER_REC *server, const char *nick) for (tmp = server->queries; tmp != NULL; tmp = tmp->next) { QUERY_REC *rec = tmp->data; - if (rec->chat_type == server->chat_type && - g_strcasecmp(nick, rec->name) == 0) + if (g_strcasecmp(nick, rec->name) == 0) return rec; } |