1
0
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:
Timo Sirainen 2000-12-06 05:51:31 +00:00 committed by cras
parent d22ca4efe5
commit a7014495bd

View File

@ -280,7 +280,9 @@ void parse_channel_modes(IRC_CHANNEL_REC *channel, const char *setby,
} }
g_free(dup); 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 /* join was used with key but there's no key set
in channel modes.. */ in channel modes.. */
g_free(channel->key); g_free(channel->key);