mirror of
https://github.com/irssi/irssi.git
synced 2026-08-09 20:00:23 +02: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
1 changed files with 3 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue