mirror of
https://github.com/irssi/irssi.git
synced 2024-12-04 14:46:39 -05:00
Remember key not only with channel->key, but also in channel->mode (in the statusbar) on key-hiding-servers, like before isupport
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3315 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
0d96d40b30
commit
8b8c58f4ef
@ -338,10 +338,11 @@ void parse_channel_modes(IRC_CHANNEL_REC *channel, const char *setby,
|
||||
in channel modes.. */
|
||||
g_free(channel->key);
|
||||
channel->key = NULL;
|
||||
} else if (!update_key) {
|
||||
} else if (!update_key && old_key != NULL) {
|
||||
/* get the old one back, just in case it was replaced */
|
||||
g_free(channel->key);
|
||||
channel->key = old_key;
|
||||
mode_set_arg(channel->server, newmode, '+', 'k', old_key, FALSE);
|
||||
old_key = NULL;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user