summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/plugins/irc/irc-command.c4
-rw-r--r--src/plugins/irc/irc-command.h7
-rw-r--r--src/plugins/irc/irc-protocol.c2
3 files changed, 8 insertions, 5 deletions
diff --git a/src/plugins/irc/irc-command.c b/src/plugins/irc/irc-command.c
index 35c618d54..c8c7ea61d 100644
--- a/src/plugins/irc/irc-command.c
+++ b/src/plugins/irc/irc-command.c
@@ -6975,8 +6975,8 @@ irc_command_init ()
" /cap req -away-notify"),
"ls"
" || list"
- " || req " IRC_COMMAND_CAP_SUPPORTED_COMPLETION "|%*"
- " || ack " IRC_COMMAND_CAP_SUPPORTED_COMPLETION "|%*"
+ " || req " IRC_COMMAND_CAP_SUPPORTED "|%*"
+ " || ack " IRC_COMMAND_CAP_SUPPORTED "|%*"
" || end",
&irc_command_cap, NULL, NULL);
weechat_hook_command (
diff --git a/src/plugins/irc/irc-command.h b/src/plugins/irc/irc-command.h
index e97372edf..7a57dfbb8 100644
--- a/src/plugins/irc/irc-command.h
+++ b/src/plugins/irc/irc-command.h
@@ -53,8 +53,11 @@ struct t_irc_channel;
return WEECHAT_RC_OK; \
}
-/* list of supported capabilities (for completion in command /cap) */
-#define IRC_COMMAND_CAP_SUPPORTED_COMPLETION \
+/*
+ * list of supported capabilities
+ * (enabled if supported by the server + completion in command /cap)
+ */
+#define IRC_COMMAND_CAP_SUPPORTED \
"account-notify|away-notify|batch|cap-notify|chghost|" \
"extended-join|invite-notify|message-tags|multi-prefix|" \
"server-time|setname|userhost-in-names"
diff --git a/src/plugins/irc/irc-protocol.c b/src/plugins/irc/irc-protocol.c
index b3eb2d226..3ba8a45c1 100644
--- a/src/plugins/irc/irc-protocol.c
+++ b/src/plugins/irc/irc-protocol.c
@@ -754,7 +754,7 @@ irc_protocol_cap_to_enable (const char *capabilities, int sasl_requested)
if (strcmp (caps[i], "*") == 0)
{
supported_caps = weechat_string_replace (
- IRC_COMMAND_CAP_SUPPORTED_COMPLETION,
+ IRC_COMMAND_CAP_SUPPORTED,
"|",
",");
if (supported_caps)