diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2016-01-17 08:36:00 +0100 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2016-01-17 08:36:00 +0100 |
commit | 99ff5813d97de377daf0fedc232b33a0d0bf532f (patch) | |
tree | 22d70926d93e046caa1a6259c8d3606035bc3e1c /src/plugins | |
parent | aee48710830a9bd6c98cca51a146c5c03a0bca20 (diff) | |
download | weechat-99ff5813d97de377daf0fedc232b33a0d0bf532f.zip |
irc: add a constant with list of supported CTCPs for completion in command /ctcp
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/irc/irc-command.c | 4 | ||||
-rw-r--r-- | src/plugins/irc/irc-command.h | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/src/plugins/irc/irc-command.c b/src/plugins/irc/irc-command.c index 73f53c06f..4a836de62 100644 --- a/src/plugins/irc/irc-command.c +++ b/src/plugins/irc/irc-command.c @@ -6259,9 +6259,9 @@ irc_command_init () " type: CTCP type (examples: \"version\", \"ping\", ..)\n" "arguments: arguments for CTCP"), "-server %(irc_servers) %(irc_channel)|%(nicks)|* " - "action|clientinfo|finger|ping|source|time|userinfo|version" + IRC_COMMAND_CTCP_SUPPORTED_COMPLETION " || %(irc_channel)|%(nicks)|* " - "action|clientinfo|finger|ping|source|time|userinfo|version", + IRC_COMMAND_CTCP_SUPPORTED_COMPLETION, &irc_command_ctcp, NULL); weechat_hook_command ( "cycle", diff --git a/src/plugins/irc/irc-command.h b/src/plugins/irc/irc-command.h index 811292baa..ac48c941f 100644 --- a/src/plugins/irc/irc-command.h +++ b/src/plugins/irc/irc-command.h @@ -48,6 +48,10 @@ struct t_irc_channel; "account-notify|away-notify|cap-notify|extended-join|" \ "multi-prefix|server-time|userhost-in-names|%*" +/* list of supported CTCPs (for completion in command /ctcp) */ +#define IRC_COMMAND_CTCP_SUPPORTED_COMPLETION \ + "action|clientinfo|finger|ping|source|time|userinfo|version" + extern void irc_command_away_server (struct t_irc_server *server, const char *arguments, int reset_unread_marker); |