mirror of
https://github.com/irssi/irssi.git
synced 2024-10-27 05:20:20 -04:00
/mode #channel -k key now removes the "+k" mode too instead of just setting
the channel key to NULL. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@225 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
0ce6aa720c
commit
a0aa649368
@ -121,10 +121,9 @@ void parse_channel_modes(CHANNEL_REC *channel, const char *setby, const char *mo
|
|||||||
ptr = cmd_get_param(&modestr);
|
ptr = cmd_get_param(&modestr);
|
||||||
if (*ptr != '\0' || type == '-') {
|
if (*ptr != '\0' || type == '-') {
|
||||||
g_free_and_null(channel->key);
|
g_free_and_null(channel->key);
|
||||||
if (type == '+') {
|
channel->mode_key = type == '+';
|
||||||
|
if (type == '+')
|
||||||
channel->key = g_strdup(ptr);
|
channel->key = g_strdup(ptr);
|
||||||
channel->mode_key = TRUE;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
signal_emit("channel mode changed", 1, channel);
|
signal_emit("channel mode changed", 1, channel);
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user