1
0
mirror of https://github.com/irssi/irssi.git synced 2024-06-30 06:45:25 +00:00

removed useless chat_type checks

git-svn-id: http://svn.irssi.org/repos/irssi/trunk@998 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2000-12-17 01:37:12 +00:00 committed by cras
parent 2523a02104
commit 3011d2c01c
2 changed files with 2 additions and 4 deletions

View File

@ -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;
}

View File

@ -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;
}