1
0
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:
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.. */ in channel modes.. */
g_free(channel->key); g_free(channel->key);
channel->key = NULL; 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 */ /* get the old one back, just in case it was replaced */
g_free(channel->key); g_free(channel->key);
channel->key = old_key; channel->key = old_key;
mode_set_arg(channel->server, newmode, '+', 'k', old_key, FALSE);
old_key = NULL; old_key = NULL;
} }