summaryrefslogtreecommitdiff
path: root/src/plugins/irc
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2019-06-15 08:56:48 +0200
committerSébastien Helleu <flashcode@flashtux.org>2019-06-15 08:56:48 +0200
commit95cbf3a48bfcf855f1d9a35fccda4ed6d3bafce1 (patch)
tree6a0472f1b3a06ac919b3e0bac8794cd073042236 /src/plugins/irc
parentb6c304ac87f0d40ab2a4ac3fac49b078cb9d77ea (diff)
downloadweechat-95cbf3a48bfcf855f1d9a35fccda4ed6d3bafce1.zip
irc: remove capability from cap_list when a client capability is disabled (issue #151)
Diffstat (limited to 'src/plugins/irc')
-rw-r--r--src/plugins/irc/irc-protocol.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/plugins/irc/irc-protocol.c b/src/plugins/irc/irc-protocol.c
index d9e160843..8a8aae461 100644
--- a/src/plugins/irc/irc-protocol.c
+++ b/src/plugins/irc/irc-protocol.c
@@ -673,6 +673,9 @@ IRC_PROTOCOL_CALLBACK(cap)
weechat_string_dyn_concat (str_caps_disabled, " ");
weechat_string_dyn_concat (str_caps_disabled,
caps_supported[i] + 1);
+
+ weechat_hashtable_remove (server->cap_list,
+ caps_supported[i] + 1);
}
else
{