1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-12 14:14:48 +02:00

irc: add a constant with list of supported CTCPs for completion in command /ctcp

This commit is contained in:
Sébastien Helleu
2016-01-17 08:36:00 +01:00
parent aee4871083
commit 99ff5813d9
2 changed files with 6 additions and 2 deletions
+2 -2
View File
@@ -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",
+4
View File
@@ -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);