mirror of
https://github.com/irssi/irssi.git
synced 2026-08-17 07:32:04 +02:00
!channel fixes.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2803 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
ede752530e
commit
3ecf864f18
6 changed files with 38 additions and 5 deletions
|
|
@ -149,12 +149,11 @@ static CHANNEL_REC *irc_channel_find_server(SERVER_REC *server,
|
|||
if (rec->chat_type != server->chat_type)
|
||||
continue;
|
||||
|
||||
/* check both !ABCDEchannel and !channel */
|
||||
if (g_strcasecmp(channel, rec->name) == 0)
|
||||
return rec;
|
||||
|
||||
/* check after removing ABCDE from !ABCDEchannel */
|
||||
if (*channel == '!' && *rec->name == '!' &&
|
||||
g_strcasecmp(channel+1, rec->name+6) == 0)
|
||||
if (g_strcasecmp(channel, rec->visible_name) == 0)
|
||||
return rec;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue