mirror of
https://github.com/irssi/irssi.git
synced 2025-04-18 00:42:58 -04: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:
parent
2523a02104
commit
3011d2c01c
@ -100,8 +100,7 @@ static CHANNEL_REC *channel_find_server(SERVER_REC *server,
|
|||||||
for (tmp = server->channels; tmp != NULL; tmp = tmp->next) {
|
for (tmp = server->channels; tmp != NULL; tmp = tmp->next) {
|
||||||
CHANNEL_REC *rec = tmp->data;
|
CHANNEL_REC *rec = tmp->data;
|
||||||
|
|
||||||
if (rec->chat_type == server->chat_type &&
|
if (g_strcasecmp(name, rec->name) == 0)
|
||||||
g_strcasecmp(name, rec->name) == 0)
|
|
||||||
return rec;
|
return rec;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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) {
|
for (tmp = server->queries; tmp != NULL; tmp = tmp->next) {
|
||||||
QUERY_REC *rec = tmp->data;
|
QUERY_REC *rec = tmp->data;
|
||||||
|
|
||||||
if (rec->chat_type == server->chat_type &&
|
if (g_strcasecmp(nick, rec->name) == 0)
|
||||||
g_strcasecmp(nick, rec->name) == 0)
|
|
||||||
return rec;
|
return rec;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user