mirror of
https://github.com/irssi/irssi.git
synced 2024-12-04 14:46:39 -05:00
sometimes channel key wasn't saved.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@977 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
d22ca4efe5
commit
a7014495bd
@ -280,7 +280,9 @@ void parse_channel_modes(IRC_CHANNEL_REC *channel, const char *setby,
|
||||
}
|
||||
g_free(dup);
|
||||
|
||||
if (strchr(channel->mode, 'k') == NULL && channel->key != NULL) {
|
||||
if (channel->key != NULL &&
|
||||
strchr(channel->mode, 'k') == NULL &&
|
||||
strchr(newmode->str, 'k') == NULL) {
|
||||
/* join was used with key but there's no key set
|
||||
in channel modes.. */
|
||||
g_free(channel->key);
|
||||
|
Loading…
Reference in New Issue
Block a user