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:
@@ -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",
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user