diff options
author | Wouter Coekaerts <coekie@irssi.org> | 2004-10-10 21:09:02 +0000 |
---|---|---|
committer | coekie <coekie@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2004-10-10 21:09:02 +0000 |
commit | 8b8c58f4ef1014843f351c4d87e095cf62be151e (patch) | |
tree | 9679c72bf2d6e73294850e937a941cab3ef8c35c /src | |
parent | 0d96d40b304f5c196a6be86eca00cb0c6411960d (diff) | |
download | irssi-8b8c58f4ef1014843f351c4d87e095cf62be151e.zip |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/irc/core/modes.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/irc/core/modes.c b/src/irc/core/modes.c index d476d84a..f58cc024 100644 --- a/src/irc/core/modes.c +++ b/src/irc/core/modes.c @@ -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; } |