1
0
mirror of https://github.com/irssi/irssi.git synced 2024-09-01 04:14:16 -04: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:
Wouter Coekaerts 2004-10-10 21:09:02 +00:00 committed by coekie
parent 0d96d40b30
commit 8b8c58f4ef

View File

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