summaryrefslogtreecommitdiff
path: root/src/plugins
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2014-01-18 20:33:19 +0100
committerSebastien Helleu <flashcode@flashtux.org>2014-01-18 20:33:19 +0100
commit8fc751532241e07031229f707c11b95e813fcfb7 (patch)
tree603b89a1de5ee5278a4d31d69d65ff908f41077f /src/plugins
parentfacd73734da8200ab44e5e323e0728da5bc7db1c (diff)
downloadweechat-8fc751532241e07031229f707c11b95e813fcfb7.zip
core: reformat hook_command arguments
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/alias/alias.c93
-rw-r--r--src/plugins/aspell/weechat-aspell-command.c70
-rw-r--r--src/plugins/charset/charset.c21
-rw-r--r--src/plugins/irc/irc-command.c1434
-rw-r--r--src/plugins/logger/logger.c80
-rw-r--r--src/plugins/plugin-script.c46
-rw-r--r--src/plugins/relay/relay-command.c110
-rw-r--r--src/plugins/rmodifier/rmodifier-command.c74
-rw-r--r--src/plugins/script/script-command.c191
-rw-r--r--src/plugins/xfer/xfer-command.c28
10 files changed, 1084 insertions, 1063 deletions
diff --git a/src/plugins/alias/alias.c b/src/plugins/alias/alias.c
index edf8d79d1..affe64223 100644
--- a/src/plugins/alias/alias.c
+++ b/src/plugins/alias/alias.c
@@ -983,53 +983,52 @@ weechat_plugin_init (struct t_weechat_plugin *plugin, int argc, char *argv[])
alias_config_read ();
- weechat_hook_command ("alias",
- N_("create an alias for a command"),
- N_("[-completion <completion>] <alias> [<command> "
- "[;<command>...]]"),
- N_("completion: completion for alias (optional, by "
- "default completion is done with target "
- "command)\n"
- " note: you can use %%command to use "
- "completion of an existing command\n"
- " alias: name of alias (can start or end "
- "with \"*\" for alias listing)\n"
- " command: command name with arguments (many "
- "commands can be separated by semicolons)\n\n"
- "Without argument, this command lists all "
- "defined alias.\n\n"
- "Note: in command, special variables "
- "are replaced:\n"
- " $n: argument 'n' (between 1 and 9)\n"
- " $-m: arguments from 1 to 'm'\n"
- " $n-: arguments from 'n' to last\n"
- " $n-m: arguments from 'n' to 'm'\n"
- " $*: all arguments\n"
- " $~: last argument\n"
- " $var: where \"var\" is a local variable of "
- "buffer (see /buffer localvar)\n"
- " examples: $nick, $channel, $server, "
- "$plugin, $name\n\n"
- "To remove an alias, use command /unalias.\n\n"
- "Examples:\n"
- " alias /split to split window horizontally:\n"
- " /alias split /window splith\n"
- " alias /hello to say \"hello\" on all channels "
- "but not on #weechat:\n"
- " /alias hello /allchan -exclude=#weechat msg "
- "* hello\n"
- " alias /forcejoin to send IRC command "
- "\"forcejoin\" with completion of /sajoin:\n"
- " /alias -completion %%sajoin forcejoin /quote forcejoin"),
- "-completion %- %(alias) %(commands)|%(alias_value)"
- " || %(alias) %(commands)|%(alias_value)",
- &alias_command_cb, NULL);
-
- weechat_hook_command ("unalias", N_("remove aliases"),
- N_("<alias> [<alias>...]"),
- N_("alias: name of alias to remove"),
- "%(alias)|%*",
- &unalias_command_cb, NULL);
+ weechat_hook_command (
+ "alias",
+ N_("create an alias for a command"),
+ N_("[-completion <completion>] <alias> [<command> [;<command>...]]"),
+ N_("completion: completion for alias (optional, by default completion "
+ "is done with target command)\n"
+ " note: you can use %%command to use completion of an "
+ "existing command\n"
+ " alias: name of alias (can start or end with \"*\" for alias "
+ "listing)\n"
+ " command: command name with arguments (many commands can be "
+ "separated by semicolons)\n"
+ "\n"
+ "Without argument, this command lists all defined alias.\n"
+ "\n"
+ "Note: in command, special variables are replaced:\n"
+ " $n: argument 'n' (between 1 and 9)\n"
+ " $-m: arguments from 1 to 'm'\n"
+ " $n-: arguments from 'n' to last\n"
+ " $n-m: arguments from 'n' to 'm'\n"
+ " $*: all arguments\n"
+ " $~: last argument\n"
+ " $var: where \"var\" is a local variable of buffer (see "
+ "/buffer localvar)\n"
+ " examples: $nick, $channel, $server, $plugin, $name\n"
+ "\n"
+ "To remove an alias, use command /unalias.\n"
+ "\n"
+ "Examples:\n"
+ " alias /split to split window horizontally:\n"
+ " /alias split /window splith\n"
+ " alias /hello to say \"hello\" on all channels but not on "
+ "#weechat:\n"
+ " /alias hello /allchan -exclude=#weechat msg * hello\n"
+ " alias /forcejoin to send IRC command \"forcejoin\" with "
+ "completion of /sajoin:\n"
+ " /alias -completion %%sajoin forcejoin /quote forcejoin"),
+ "-completion %- %(alias) %(commands)|%(alias_value)"
+ " || %(alias) %(commands)|%(alias_value)",
+ &alias_command_cb, NULL);
+ weechat_hook_command (
+ "unalias", N_("remove aliases"),
+ N_("<alias> [<alias>...]"),
+ N_("alias: name of alias to remove"),
+ "%(alias)|%*",
+ &unalias_command_cb, NULL);
weechat_hook_completion ("alias", N_("list of aliases"),
&alias_completion_cb, NULL);
diff --git a/src/plugins/aspell/weechat-aspell-command.c b/src/plugins/aspell/weechat-aspell-command.c
index 3dfb12d48..ccc5dc3c6 100644
--- a/src/plugins/aspell/weechat-aspell-command.c
+++ b/src/plugins/aspell/weechat-aspell-command.c
@@ -458,40 +458,38 @@ weechat_aspell_command_cb (void *data, struct t_gui_buffer *buffer,
void
weechat_aspell_command_init ()
{
- weechat_hook_command ("aspell",
- N_("aspell plugin configuration"),
- N_("enable|disable|toggle"
- " || listdict"
- " || setdict <dict>[,<dict>...]"
- " || deldict"
- " || addword [<dict>] <word>"),
- N_(" enable: enable aspell\n"
- " disable: disable aspell\n"
- " toggle: toggle aspell\n"
- "listdict: show installed dictionaries\n"
- " setdict: set dictionary for current buffer "
- "(multiple dictionaries can be separated by a "
- "comma)\n"
- " deldict: delete dictionary used on current "
- "buffer\n"
- " addword: add a word in personal aspell "
- "dictionary\n"
- "\n"
- "Input line beginning with a '/' is not checked, "
- "except for some commands (see /set "
- "aspell.check.commands).\n\n"
- "To enable aspell on all buffers, use option "
- "\"default_dict\", then enable aspell, for "
- "example:\n"
- " /set aspell.check.default_dict \"en\"\n"
- " /aspell enable\n\n"
- "Default key to toggle aspell is alt-s."),
- "enable"
- " || disable"
- " || toggle"
- " || listdict"
- " || setdict %(aspell_dicts)"
- " || deldict"
- " || addword",
- &weechat_aspell_command_cb, NULL);
+ weechat_hook_command (
+ "aspell",
+ N_("aspell plugin configuration"),
+ N_("enable|disable|toggle"
+ " || listdict"
+ " || setdict <dict>[,<dict>...]"
+ " || deldict"
+ " || addword [<dict>] <word>"),
+ N_(" enable: enable aspell\n"
+ " disable: disable aspell\n"
+ " toggle: toggle aspell\n"
+ "listdict: show installed dictionaries\n"
+ " setdict: set dictionary for current buffer (multiple dictionaries "
+ "can be separated by a comma)\n"
+ " deldict: delete dictionary used on current buffer\n"
+ " addword: add a word in personal aspell dictionary\n"
+ "\n"
+ "Input line beginning with a '/' is not checked, except for some "
+ "commands (see /set aspell.check.commands).\n"
+ "\n"
+ "To enable aspell on all buffers, use option \"default_dict\", then "
+ "enable aspell, for example:\n"
+ " /set aspell.check.default_dict \"en\"\n"
+ " /aspell enable\n"
+ "\n"
+ "Default key to toggle aspell is alt-s."),
+ "enable"
+ " || disable"
+ " || toggle"
+ " || listdict"
+ " || setdict %(aspell_dicts)"
+ " || deldict"
+ " || addword",
+ &weechat_aspell_command_cb, NULL);
}
diff --git a/src/plugins/charset/charset.c b/src/plugins/charset/charset.c
index 3824f9db6..63a0ebc68 100644
--- a/src/plugins/charset/charset.c
+++ b/src/plugins/charset/charset.c
@@ -584,16 +584,17 @@ weechat_plugin_init (struct t_weechat_plugin *plugin, int argc, char *argv[])
charset_config_read ();
/* /charset command */
- weechat_hook_command ("charset",
- N_("change charset for current buffer"),
- N_("decode|encode <charset>"
- " || reset"),
- N_(" decode: change decoding charset\n"
- " encode: change encoding charset\n"
- "charset: new charset for current buffer\n"
- " reset: reset charsets for current buffer"),
- "decode|encode|reset",
- &charset_command_cb, NULL);
+ weechat_hook_command (
+ "charset",
+ N_("change charset for current buffer"),
+ N_("decode|encode <charset>"
+ " || reset"),
+ N_(" decode: change decoding charset\n"
+ " encode: change encoding charset\n"
+ "charset: new charset for current buffer\n"
+ " reset: reset charsets for current buffer"),
+ "decode|encode|reset",
+ &charset_command_cb, NULL);
/* modifiers hooks */
weechat_hook_modifier ("charset_decode", &charset_decode_cb, NULL);
diff --git a/src/plugins/irc/irc-command.c b/src/plugins/irc/irc-command.c
index 92601bb05..a9046ed85 100644
--- a/src/plugins/irc/irc-command.c
+++ b/src/plugins/irc/irc-command.c
@@ -5793,712 +5793,732 @@ irc_command_whowas (void *data, struct t_gui_buffer *buffer, int argc,
void
irc_command_init ()
{
- weechat_hook_command ("admin",
- N_("find information about the administrator of the "
- "server"),
- N_("[<target>]"),
- N_("target: server"),
- NULL, &irc_command_admin, NULL);
- weechat_hook_command ("allchan",
- N_("execute a command on all channels of all "
- "connected servers"),
- N_("[-current] [-exclude=<channel>[,<channel>...]] "
- "<command> [<arguments>]"),
- N_(" -current: execute command for channels of "
- "current server only\n"
- " -exclude: exclude some channels ('*' is "
- "allowed at beginning or end of channel name, to "
- "exclude many channels)\n"
- " command: command to execute\n"
- "arguments: arguments for command (special variables "
- "$nick, $channel and $server are replaced by their "
- "value)\n\n"
- "Examples:\n"
- " execute '/me is testing' on all channels:\n"
- " /allchan me is testing\n"
- " say 'hello' everywhere but not on #weechat:\n"
- " /allchan -exclude=#weechat msg * hello\n"
- " say 'hello' everywhere but not on #weechat "
- "and channels beginning with #linux:\n"
- " /allchan -exclude=#weechat,#linux* msg * hello"),
- NULL, &irc_command_allchan, NULL);
- weechat_hook_command ("allserv",
- N_("execute a command on all connected servers"),
- N_("[-exclude=<server>[,<server>...]] "
- "<command> [<arguments>]"),
- N_(" -exclude: exclude some servers ('*' is "
- "allowed at beginning or end of server name, to "
- "exclude many servers)\n"
- " command: command to execute\n"
- "arguments: arguments for command (special variables "
- "$nick, $channel and $server are replaced by their "
- "value)\n\n"
- "Examples:\n"
- " change nick on all servers:\n"
- " /allserv nick newnick\n"
- " set away on all servers:\n"
- " /allserv away I'm away\n"
- " do a whois on my nick on all servers:\n"
- " /allserv whois $nick"),
- NULL, &irc_command_allserv, NULL);
+ weechat_hook_command (
+ "admin",
+ N_("find information about the administrator of the server"),
+ N_("[<target>]"),
+ N_("target: server"),
+ NULL, &irc_command_admin, NULL);
+ weechat_hook_command (
+ "allchan",
+ N_("execute a command on all channels of all connected servers"),
+ N_("[-current] [-exclude=<channel>[,<channel>...]] <command> "
+ "[<arguments>]"),
+ N_(" -current: execute command for channels of current server only\n"
+ " -exclude: exclude some channels ('*' is allowed at beginning or "
+ "end of channel name, to exclude many channels)\n"
+ " command: command to execute\n"
+ "arguments: arguments for command (special variables $nick, $channel "
+ "and $server are replaced by their value)\n"
+ "\n"
+ "Examples:\n"
+ " execute '/me is testing' on all channels:\n"
+ " /allchan me is testing\n"
+ " say 'hello' everywhere but not on #weechat:\n"
+ " /allchan -exclude=#weechat msg * hello\n"
+ " say 'hello' everywhere but not on #weechat and channels beginning "
+ "with #linux:\n"
+ " /allchan -exclude=#weechat,#linux* msg * hello"),
+ NULL, &irc_command_allchan, NULL);
+ weechat_hook_command (
+ "allserv",
+ N_("execute a command on all connected servers"),
+ N_("[-exclude=<server>[,<server>...]] "
+ "<command> [<arguments>]"),
+ N_(" -exclude: exclude some servers ('*' is allowed at beginning or end "
+ "of server name, to exclude many servers)\n"
+ " command: command to execute\n"
+ "arguments: arguments for command (special variables $nick, $channel "
+ "and $server are replaced by their value)\n"
+ "\n"
+ "Examples:\n"
+ " change nick on all servers:\n"
+ " /allserv nick newnick\n"
+ " set away on all servers:\n"
+ " /allserv away I'm away\n"
+ " do a whois on my nick on all servers:\n"
+ " /allserv whois $nick"),
+ NULL, &irc_command_allserv, NULL);
weechat_hook_command_run ("/away", &irc_command_run_away, NULL);
- weechat_hook_command ("ban",
- N_("ban nicks or hosts"),
- N_("[<channel>] [<nick> [<nick>...]]"),
- N_("channel: channel for ban\n"
- " nick: user or host to ban\n\n"
- "Without argument, this command display ban list "
- "for current channel."),
- "%(irc_channel_nicks_hosts)", &irc_command_ban, NULL);
- weechat_hook_command ("connect",
- N_("connect to IRC server(s)"),
- N_("<server> [<server>...] [-<option>[=<value>]] "
- "[-no<option>] [-nojoin] [-switch]"
- " || -all|-auto|-open [-nojoin] [-switch]"),
- N_(" server: server name, which can be:\n"
- " - internal server name (created by "
- "/server add, recommended usage)\n"
- " - hostname/port or IP/port (this "
- "will create a TEMPORARY server), port is 6667 "
- "by default\n"
- " - URL with format: "
- "irc[6][s]://[nickname[:password]@]"
- "irc.example.org[:port][/#channel1][,#channel2[...]]\n"
- " option: set option for server (for boolean "
- "option, value can be omitted)\n"
- " nooption: set boolean option to 'off' (for "
- "example: -nossl)\n"
- " -all: connect to all servers defined in "
- "configuration\n"
- " -auto: connect to servers with autoconnect "
- "enabled\n"
- " -open: connect to all opened servers that "
- "are not currently connected\n"
- " -nojoin: do not join any channel (even if "
- "autojoin is enabled on server)\n"
- " -switch: switch to next server address\n\n"
- "To disconnect from a server or stop any connection "
- "attempt, use command /disconnect.\n\n"
- "Examples:\n"
- " /connect freenode\n"
- " /connect irc.oftc.net/6667\n"
- " /connect irc6.oftc.net/6667 -ipv6\n"
- " /connect irc6.oftc.net/6697 -ipv6 -ssl\n"
- " /connect my.server.org/6697 -ssl -password=test\n"
- " /connect irc://nick@irc.oftc.net/#channel\n"
- " /connect -switch"),
- "%(irc_servers)|-all|-auto|-open|-nojoin|-switch|%*",
- &irc_command_connect, NULL);
- weechat_hook_command ("ctcp",
- N_("send a CTCP message (Client-To-Client Protocol)"),
- N_("<target> <type> [<arguments>]"),
- N_(" target: nick or channel to send CTCP to\n"
- " type: CTCP type (examples: \"version\", "
- "\"ping\", ..)\n"
- "arguments: arguments for CTCP"),
- "%(irc_channel)|%(nicks) "
- "action|clientinfo|finger|ping|source|time|userinfo|"
- "version",
- &irc_command_ctcp, NULL);
- weechat_hook_command ("cycle",
- N_("leave and rejoin a channel"),
- N_("[<channel>[,<channel>...]] [<message>]"),
- N_("channel: channel name for cycle\n"
- "message: part message (displayed to other "
- "users)"),
- "%(irc_msg_part)", &irc_command_cycle, NULL);
- weechat_hook_command ("dcc",
- N_("start a DCC (file transfer or direct chat)"),
- N_("chat <nick>"
- " || send <nick> <file>"),
- N_("nick: nick for chat or file\n"
- "file: filename (on local host)\n\n"
- "Examples:\n"
- " chat with nick \"toto\":\n"
- " /dcc chat toto\n"
- " send file \"/home/foo/bar.txt\" to nick \"toto\":\n"
- " /dcc send toto /home/foo/bar.txt"),
- "chat %(nicks)"
- " || send %(nicks) %(filename)",
- &irc_command_dcc, NULL);
- weechat_hook_command ("dehalfop",
- N_("remove channel half-operator status from "
- "nick(s)"),
- N_("<nick> [<nick>...]"),
- N_("nick: nick or mask (can start or end with \"*\" "
- "as wildcard)\n"
- " *: remove channel half-operator status from "
- "everybody on channel except yourself"),
- "%(nicks)", &irc_command_dehalfop, NULL);
- weechat_hook_command ("deop",
- N_("remove channel operator status from "
- "nick(s)"),
- N_("<nick> [<nick>...] || * -yes"),
- N_("nick: nick or mask (can start or end with \"*\" "
- "as wildcard)\n"
- " *: remove channel operator status from "
- "everybody on channel except yourself"),
- "%(nicks)|%*", &irc_command_deop, NULL);
- weechat_hook_command ("devoice",
- N_("remove voice from nick(s)"),
- N_("<nick> [<nick>...] || * -yes"),
- N_("nick: nick or mask (can start or end with \"*\" "
- "as wildcard)\n"
- " *: remove voice from everybody on channel"),
- "%(nicks)|%*", &irc_command_devoice, NULL);
- weechat_hook_command ("die",
- N_("shutdown the server"),
- N_("[<target>]"),
- N_("target: server name"),
- NULL, &irc_command_die, NULL);
- weechat_hook_command ("disconnect",
- N_("disconnect from one or all IRC servers"),
- N_("[<server>|-all|-pending [<reason>]]"),
- N_(" server: server name to disconnect\n"
- " -all: disconnect from all servers\n"
- "-pending: cancel auto-reconnection on servers "
- "currently reconnecting\n"
- " reason: reason for quit"),
- "%(irc_servers)|-all|-pending",
- &irc_command_disconnect, NULL);
- weechat_hook_command ("halfop",
- N_("give channel half-operator status to "
- "nick(s)"),
- N_("<nick> [<nick>...] || * -yes"),
- N_("nick: nick or mask (can start or end with \"*\" "
- "as wildcard)\n"
- " *: give channel half-operator status to "
- "everybody on channel"),
- "%(nicks)", &irc_command_halfop, NULL);
- weechat_hook_command ("ignore",
- N_("ignore nicks/hosts from servers or channels"),
- N_("list"
- " || add [re:]<nick> [<server> [<channel>]]"
- " || del <number>|-all"),
- N_(" list: list all ignores\n"
- " add: add an ignore\n"
- " nick: nick or hostname (can be a POSIX "
- "extended regular expression if \"re:\" is given "
- "or a mask using \"*\" to replace one or more "
- "chars)\n"
- " del: delete an ignore\n"
- " number: number of ignore to delete (look at "
- "list to find it)\n"
- " -all: delete all ignores\n"
- " server: internal server name where ignore "
- "is working\n"
- " channel: channel name where ignore is "
- "working\n\n"
- "Note: the regular expression can start with "
- "\"(?-i)\" to become case sensitive.\n\n"
- "Examples:\n"
- " ignore nick \"toto\" everywhere:\n"
- " /ignore add toto\n"
- " ignore host \"toto@domain.com\" on freenode server:\n"
- " /ignore add toto@domain.com freenode\n"
- " ignore host \"toto*@*.domain.com\" on freenode/#weechat:\n"
- " /ignore add toto*@*.domain.com freenode #weechat"),
- "list"
- " || add %(irc_channel_nicks_hosts) %(irc_servers) %(irc_channels) %-"
- " || del -all|%(irc_ignores_numbers) %-",
- &irc_command_ignore, NULL);
- weechat_hook_command ("info",
- N_("get information describing the server"),
- N_("[<target>]"),
- N_("target: server name"),
- NULL, &irc_command_info, NULL);
- weechat_hook_command ("invite",
- N_("invite a nick on a channel"),
- N_("<nick> [<nick>...] [<channel>]"),
- N_(" nick: nick to invite\n"
- "channel: channel to invite"),
- "%(nicks) %(irc_server_channels)", &irc_command_invite, NULL);
- weechat_hook_command ("ison",
- N_("check if a nick is currently on IRC"),
- N_("<nick> [<nick>...]"),
- N_("nick: nick"),
- "%(nicks)|%*", &irc_command_ison, NULL);
- weechat_hook_command ("join",
- N_("join a channel"),
- N_("[-noswitch] [-server <server>] "
- "[<channel1>[,<channel2>...]] [<key1>[,<key2>...]]"),
- N_("-noswitch: do not switch to new buffer\n"
- " server: send to this server (internal name)\n"
- " channel: channel name to join\n"
- " key: key to join the channel (channels with "
- "a key must be the first in list)\n\n"
- "Examples:\n"
- " /join #weechat\n"
- " /join #protectedchan,#weechat key\n"
- " /join -server freenode #weechat\n"
- " /join -noswitch #weechat"),
- "%(irc_channels)|-noswitch|-server|%(irc_servers)|%*",
- &irc_command_join, NULL);
- weechat_hook_command ("kick",
- N_("forcibly remove a user from a channel"),
- N_("[<channel>] <nick> [<reason>]"),
- N_("channel: channel where user is\n"
- " nick: nick to kick\n"
- " reason: reason for kick (special variables "
- "$nick, $channel and $server are replaced by their "
- "value)"),
- "%(nicks) %(irc_msg_kick) %-", &irc_command_kick, NULL);
- weechat_hook_command ("kickban",
- N_("kicks and bans a nick from a channel"),
- N_("[<channel>] <nick> [<reason>]"),
- N_("channel: channel where user is\n"
- " nick: nick to kick and ban\n"
- " reason: reason for kick (special variables "
- "$nick, $channel and $channel are replaced by their "
- "value)\n\n"
- "It is possible to kick/ban with a mask, nick "
- "will be extracted from mask and replaced by "
- "\"*\".\n\n"
- "Example:\n"
- " ban \"*!*@host.com\" and then kick \"toto\":\n"
- " /kickban toto!*@host.com"),
- "%(irc_channel_nicks_hosts) %(irc_msg_kick) %-",
- &irc_command_kickban, NULL);
- weechat_hook_command ("kill",
- N_("close client-server connection"),
- N_("<nick> <reason>"),
- N_(" nick: nick to kill\n"
- "reason: reason for kill"),
- "%(nicks) %-", &irc_command_kill, NULL);
- weechat_hook_command ("links",
- N_("list all servernames which are known by the "
- "server answering the query"),
- N_("[[<server>] <server_mask>]"),
- N_(" server: this server should answer the "
- "query\n"
- "server_mask: list of servers must match this "
- "mask"),
- NULL, &irc_command_links, NULL);
- weechat_hook_command ("list",
- N_("list channels and their topic"),
- N_("[<channel>[,<channel>...]] [<server>] "
- "[-re <regex>]"),
- N_("channel: channel to list\n"
- " server: server name\n"
- " regex: POSIX extended regular expression used "
- "to filter results (case insensitive, can start "
- "by \"(?-i)\" to become case sensitive)\n\n"
- "Examples:\n"
- " list all channels on server (can be very slow "
- "on large networks):\n"
- " /list\n"
- " list channel #weechat:\n"
- " /list #weechat\n"
- " list all channels beginning with \"#weechat\" "
- "(can be very slow on large networks):\n"
- " /list -re #weechat.*"),
- NULL, &irc_command_list, NULL);
- weechat_hook_command ("lusers",
- N_("get statistics about the size of the IRC "
- "network"),
- N_("[<mask> [<target>]]"),
- N_(" mask: servers matching the mask only\n"
- "target: server for forwarding request"),
- NULL, &irc_command_lusers, NULL);
- weechat_hook_command ("map",
- N_("show a graphical map of the IRC network"),
- "",
- "",
- NULL, &irc_command_map, NULL);
- weechat_hook_command ("me",
- N_("send a CTCP action to the current channel"),
- N_("<message>"),
- N_("message: message to send"),
- NULL, &irc_command_me, NULL);
- weechat_hook_command ("mode",
- N_("change channel or user mode"),
- N_("[<channel>] [+|-]o|p|s|i|t|n|m|l|b|e|v|k "
- "[<arguments>] || <nick> [+|-]i|s|w|o"),
- N_("channel modes:\n"
- " channel: channel name to modify (default is "
- "current one)\n"
- " o: give/take channel operator privileges\n"
- " p: private channel flag\n"
- " s: secret channel flag\n"
- " i: invite-only channel flag\n"
- " t: topic settable by channel operator only "
- "flag\n"
- " n: no messages to channel from clients on the "
- "outside\n"
- " m: moderated channel\n"
- " l: set the user limit to channel\n"
- " b: set a ban mask to keep users out\n"
- " e: set exception mask\n"
- " v: give/take the ability to speak on a "
- "moderated channel\n"
- " k: set a channel key (password)\n"
- "user modes:\n"
- " nick: nick to modify\n"
- " i: mark a user as invisible\n"
- " s: mark a user for receive server notices\n"
- " w: user receives wallops\n"
- " o: operator flag\n\n"
- "List of modes is not comprehensive, you should "
- "read documentation about your server to see all "
- "possible modes.\n\n"
- "Examples:\n"
- " protect topic on channel #weechat:\n"
- " /mode #weechat +t\n"
- " become invisible on server:\n"
- " /mode nick +i"),
- "%(irc_channel)|%(irc_server_nick)", &irc_command_mode, NULL);
- weechat_hook_command ("motd",
- N_("get the \"Message Of The Day\""),
- N_("[<target>]"),
- N_("target: server name"),
- NULL, &irc_command_motd, NULL);
- weechat_hook_command ("msg",
- N_("send message to a nick or channel"),
- N_("[-server <server>] <target>[,<target>...] <text>"),
- N_("server: send to this server (internal name)\n"
- "target: nick or channel (may be mask, '*' = "
- "current channel)\n"
- " text: text to send"),
- "-server %(irc_servers)"
- " || %(nicks)",
- &irc_command_msg, NULL);
- weechat_hook_command ("names",
- N_("list nicks on channels"),
- N_("[<channel>[,<channel>...]]"),
- N_("channel: channel name"),
- "%(irc_channels)", &irc_command_names, NULL);
- weechat_hook_command ("nick",
- N_("change current nick"),
- N_("[-all] <nick>"),
- N_("-all: set new nick for all connected "
- "servers\n"
- "nick: new nick"),
- "-all %(irc_server_nick)"
- " || %(irc_server_nick)",
- &irc_command_nick, NULL);
- weechat_hook_command ("notice",
- N_("send notice message to user"),
- N_("[-server <server>] <target> <text>"),
- N_("server: send to this server (internal name)\n"
- "target: nick or channel\n"
- " text: text to send"),
- "%(nicks)|-server %(irc_servers)", &irc_command_notice, NULL);
- weechat_hook_command ("notify",
- N_("add a notification for presence or away status "
- "of nicks on servers"),
- N_("add <nick> [<server> [-away]]"
- " || del <nick>|-all [<server>]"),
- N_(" add: add a notification\n"
- " nick: nick\n"
- "server: internal server name (by default "
- "current server)\n"
- " -away: notify when away message is changed "
- "(by doing whois on nick)\n"
- " del: delete a notification\n"
- " -all: delete all notifications\n\n"
- "Without argument, this command displays "
- "notifications for current server (or all servers "
- "if command is issued on core buffer).\n\n"
- "Examples:\n"
- " notify when \"toto\" joins/quits current "
- "server:\n"
- " /notify add toto\n"
- " notify when \"toto\" joins/quits freenode "
- "server:\n"
- " /notify add toto freenode\n"
- " notify when \"toto\" is away or back on "
- "freenode server:\n"
- " /notify add toto freenode -away"),
- "add %(irc_channel_nicks) %(irc_servers) "
- "-away %-"
- " || del -all|%(irc_notify_nicks) %(irc_servers) %-",
- &irc_command_notify, NULL);
- weechat_hook_command ("op",
- N_("give channel operator status to nick(s)"),
- N_("<nick> [<nick>...] || * -yes"),
- N_("nick: nick or mask (can start or end with \"*\" "
- "as wildcard)\n"
- " *: give channel operator status to everybody "
- "on channel"),
- "%(nicks)|%*", &irc_command_op, NULL);
- weechat_hook_command ("oper",
- N_("get operator privileges"),
- N_("<user> <password>"),
- N_(" user: user\n"
- "password: password"),
- NULL, &irc_command_oper, NULL);
- weechat_hook_command ("part",
- N_("leave a channel"),
- N_("[<channel>[,<channel>...]] [<message>]"),
- N_("channel: channel name to leave\n"
- "message: part message (displayed to other "
- "users)"),
- "%(irc_msg_part)", &irc_command_part, NULL);
- weechat_hook_command ("ping",
- N_("send a ping to server"),
- N_("<server1> [<server2>]"),
- N_("server1: server\n"
- "server2: forward ping to this server"),
- NULL, &irc_command_ping, NULL);
- weechat_hook_command ("pong",
- N_("answer to a ping message"),
- N_("<daemon> [<daemon2>]"),
- N_(" daemon: daemon who has responded to Ping "
- "message\n"
- "daemon2: forward message to this daemon"),
- NULL, &irc_command_pong, NULL);
- weechat_hook_command ("query",
- N_("send a private message to a nick"),
- N_("[-server <server>] <nick>[,<nick>...] [<text>]"),
- N_("server: send to this server (internal name)\n"
- " nick: nick for private conversation\n"
- " text: text to send"),
- "%(nicks)|-server %(irc_servers)", &irc_command_query, NULL);
- weechat_hook_command ("quiet",
- N_("quiet nicks or hosts"),
- N_("[<channel>] [<nick> [<nick>...]]"),
- N_("channel: channel for quiet\n"
- " nick: user or host to quiet\n\n"
- "Without argument, this command display quiet list "
- "for current channel."),
- "%(irc_channel_nicks_hosts)", &irc_command_quiet, NULL);
- weechat_hook_command ("quote",
- N_("send raw data to server without parsing"),
- N_("[-server <server>] <data>"),
- N_("server: send to this server (internal name)\n"
- " data: raw data to send"),
- "-server %(irc_servers)", &irc_command_quote, NULL);
- weechat_hook_command ("reconnect",
- N_("reconnect to server(s)"),
- N_("<server> [<server>...] [-nojoin] [-switch]"
- " || -all [-nojoin] [-switch]"),
- N_(" server: server name to reconnect\n"
- " -all: reconnect to all servers\n"
- "-nojoin: do not join any channel (even if "
- "autojoin is enabled on server)\n"
- "-switch: switch to next server address"),
- "%(irc_servers)|-all|-nojoin|-switch|%*",
- &irc_command_reconnect, NULL);
- weechat_hook_command ("rehash",
- N_("tell the server to reload its config file"),
- N_("[<option>]"),
- N_("option: extra option, for some servers"),
- NULL, &irc_command_rehash, NULL);
- weechat_hook_command ("restart",
- N_("tell the server to restart itself"),
- N_("[<target>]"),
- N_("target: server name"),
- NULL, &irc_command_restart, NULL);
- weechat_hook_command ("sajoin",
- N_("force a user to join channel(s)"),
- N_("<nick> <channel>[,<channel>...]"),
- N_(" nick: nick\n"
- "channel: channel name"),
- "%(nicks) %(irc_server_channels)", &irc_command_sajoin, NULL);
- weechat_hook_command ("samode",
- N_("change mode on channel, without having operator "
- "status"),
- N_("<channel> <mode>"),
- N_("channel: channel name\n"
- " mode: mode for channel"),
- "%(irc_server_channels)", &irc_command_samode, NULL);
- weechat_hook_command ("sanick",
- N_("force a user to use another nick"),
- N_("<nick> <new_nick>"),
- N_(" nick: nick\n"
- "new_nick: new nick"),
- "%(nicks) %(nicks)", &irc_command_sanick, NULL);
- weechat_hook_command ("sapart",
- N_("force a user to leave channel(s)"),
- N_("<nick> <channel>[,<channel>...]"),
- N_(" nick: nick\n"
- "channel: channel name"),
- "%(nicks) %(irc_server_channels)", &irc_command_sapart, NULL);
- weechat_hook_command ("saquit",
- N_("force a user to quit server with a reason"),
- N_("<nick> <reason>"),
- N_(" nick: nick\n"
- "reason: reason"),
- "%(nicks)", &irc_command_saquit, NULL);
- weechat_hook_command ("service",
- N_("register a new service"),
- N_("<nick> <reserved> <distribution> <type> "
- "<reserved> <info>"),
- N_("distribution: visibility of service\n"
- " type: reserved for future usage"),
- NULL, &irc_command_service, NULL);
- weechat_hook_command ("server",
- N_("list, add or remove IRC servers"),
- N_("list|listfull [<server>]"
- " || add <server> <hostname>[/<port>] [-temp] "
- "[-<option>[=<value>]] [-no<option>]"
- " || copy|rename <server> <new_name>"
- " || del|keep <server>"
- " || deloutq|jump|raw"),
- N_(" list: list servers (without argument, "
- "this list is displayed)\n"
- "listfull: list servers with detailed info for "
- "each server\n"
- " add: create a new server\n"
- " server: server name, for internal and "
- "display use\n"
- "hostname: name or IP address of server, with "
- "optional port (default: 6667), many addresses can "
- "be separated by a comma\n"
- " temp: create temporary server (not saved)\n"
- " option: set option for server (for boolean "
- "option, value can be omitted)\n"
- "nooption: set boolean option to 'off' (for "
- "example: -nossl)\n"
- " copy: duplicate a server\n"
- " rename: rename a server\n"
- " keep: keep server in config file (for "
- "temporary servers only)\n"
- " del: delete a server\n"
- " deloutq: delete messages out queue for all "
- "servers (all messages WeeChat is currently "
- "sending)\n"
- " jump: jump to server buffer\n"
- " raw: open buffer with raw IRC data\n\n"
- "Examples:\n"
- " /server listfull\n"
- " /server add oftc irc.oftc.net/6697 -ssl -autoconnect\n"
- " /server add oftc6 irc6.oftc.net/6697 -ipv6 -ssl\n"
- " /server add freenode2 chat.eu.freenode.net/6667,"
- "chat.us.freenode.net/6667\n"
- " /server add freenode3 irc.freenode.net -password=mypass\n"
- " /server copy oftc oftcbis\n"
- " /server rename oftc newoftc\n"
- " /server del freenode\n"
- " /server deloutq"),
- "list %(irc_servers)"
- " || listfull %(irc_servers)"
- " || add %(irc_servers)"
- " || copy %(irc_servers) %(irc_servers)"
- " || rename %(irc_servers) %(irc_servers)"
- " || keep %(irc_servers)"
- " || del %(irc_servers)"
- " || deloutq"
- " || jump"
- " || raw",
- &irc_command_server, NULL);
- weechat_hook_command ("servlist",
- N_("list services currently connected to the "
- "network"),
- N_("[<mask> [<type>]]"),
- N_("mask: list only services matching this mask\n"
- "type: list only services of this type"),
- NULL, &irc_command_servlist, NULL);
- weechat_hook_command ("squery",
- N_("deliver a message to a service"),
- N_("<service> <text>"),
- N_("service: name of service\n"
- " text: text to send"),
- NULL, &irc_command_squery, NULL);
- weechat_hook_command ("squit",
- N_("disconnect server links"),
- N_("<server> <comment>"),
- N_( " server: server name\n"
- "comment: comment for quit"),
- NULL, &irc_command_squit, NULL);
- weechat_hook_command ("stats",
- N_("query statistics about server"),
- N_("[<query> [<server>]]"),
- N_(" query: c/h/i/k/l/m/o/y/u (see RFC1459)\n"
- "server: server name"),
- NULL, &irc_command_stats, NULL);
- weechat_hook_command ("summon",
- N_("give users who are on a host running an IRC "
- "server a message asking them to please join "
- "IRC"),
- N_("<user> [<target> [<channel>]]"),
- N_(" user: username\n"
- " target: server name\n"
- "channel: channel name"),
- NULL, &irc_command_summon, NULL);
- weechat_hook_command ("time",
- N_("query local time from server"),
- N_("[<target>]"),
- N_("target: query time from specified server"),
- NULL, &irc_command_time, NULL);
- weechat_hook_command ("topic",
- N_("get/set channel topic"),
- N_("[<channel>] [<topic>|-delete]"),
- N_("channel: channel name\n"
- " topic: new topic for channel\n"
- "-delete: delete channel topic"),
- "%(irc_channel_topic)|-delete", &irc_command_topic, NULL);
- weechat_hook_command ("trace",
- N_("find the route to specific server"),
- N_("[<target>]"),
- N_("target: server"),
- NULL, &irc_command_trace, NULL);
- weechat_hook_command ("unban",
- N_("unban nicks or hosts"),
- N_("[<channel>] <nick> [<nick>...]"),
- N_("channel: channel for unban\n"
- " nick: user or host to unban"),
- NULL, &irc_command_unban, NULL);
- weechat_hook_command ("userhost",
- N_("return a list of information about nicks"),
- N_("<nick> [<nick>...]"),
- N_("nick: nick"),
- "%(nicks)", &irc_command_userhost, NULL);
- weechat_hook_command ("users",
- N_("list of users logged into the server"),
- N_("[<target>]"),
- N_("target: server"),
- NULL, &irc_command_users, NULL);
- weechat_hook_command ("version",
- N_("give the version info of nick or server "
- "(current or specified)"),
- N_("[<server>|<nick>]"),
- N_("server: server name\n"
- " nick: nick"),
- "%(nicks)", &irc_command_version, NULL);
- weechat_hook_command ("voice",
- N_("give voice to nick(s)"),
- N_("<nick> [<nick>...]"),
- N_("nick: nick or mask (can start or end with \"*\" "
- "as wildcard)\n"
- " *: give voice to everybody on channel"),
- "%(nicks)|%*", &irc_command_voice, NULL);
- weechat_hook_command ("wallchops",
- N_("send a notice to channel ops"),
- N_("[<channel>] <text>"),
- N_("channel: channel name\n"
- " text: text to send"),
- NULL, &irc_command_wallchops, NULL);
- weechat_hook_command ("wallops",
- N_("send a message to all currently connected users "
- "who have set the 'w' user mode for themselves"),
- N_("<text>"),
- N_("text: text to send"),
- NULL, &irc_command_wallops, NULL);
- weechat_hook_command ("who",
- N_("generate a query which returns a list of "
- "information"),
- N_("[<mask> [o]]"),
- N_("mask: only information which match this mask\n"
- " o: only operators are returned according to "
- "the mask supplied"),
- "%(irc_channels)", &irc_command_who, NULL);
- weechat_hook_command ("whois",
- N_("query information about user(s)"),
- N_("[<server>] [<nick>[,<nick>...]]"),
- N_("server: server name\n"
- " nick: nick (may be a mask)\n\n"
- "Without argument, this command will do a whois on:\n"
- "- your own nick if buffer is a server/channel\n"
- "- remote nick if buffer is a private."),
- "%(nicks)", &irc_command_whois, NULL);
- weechat_hook_command ("whowas",
- N_("ask for information about a nick which no "
- "longer exists"),
- N_("<nick>[,<nick>...] [<count> [<target>]]"),
- N_(" nick: nick to search\n"
- " count: number of replies to return "
- "(full search if negative number)\n"
- "target: reply should match this mask"),
- "%(nicks)", &irc_command_whowas, NULL);
+ weechat_hook_command (
+ "ban",
+ N_("ban nicks or hosts"),
+ N_("[<channel>] [<nick> [<nick>...]]"),
+ N_("channel: channel for ban\n"
+ " nick: user or host to ban\n"
+ "\n"
+ "Without argument, this command display ban list for current channel."),
+ "%(irc_channel_nicks_hosts)", &irc_command_ban, NULL);
+ weechat_hook_command (
+ "connect",
+ N_("connect to IRC server(s)"),
+ N_("<server> [<server>...] [-<option>[=<value>]] [-no<option>] "
+ "[-nojoin] [-switch]"
+ " || -all|-auto|-open [-nojoin] [-switch]"),
+ N_(" server: server name, which can be:\n"
+ " - internal server name (created by /server add, "
+ "recommended usage)\n"
+ " - hostname/port or IP/port (this will create a TEMPORARY "
+ "server), port is 6667 by default\n"
+ " - URL with format: irc[6][s]://[nickname[:password]@]"
+ "irc.example.org[:port][/#channel1][,#channel2[...]]\n"
+ " option: set option for server (for boolean option, value can be "
+ "omitted)\n"
+ " nooption: set boolean option to 'off' (for example: -nossl)\n"
+ " -all: connect to all servers defined in configuration\n"
+ " -auto: connect to servers with autoconnect enabled\n"
+ " -open: connect to all opened servers that are not currently "
+ "connected\n"
+ " -nojoin: do not join any channel (even if autojoin is enabled on "
+ "server)\n"
+ " -switch: switch to next server address\n"
+ "\n"
+ "To disconnect from a server or stop any connection attempt, use "
+ "command /disconnect.\n"
+ "\n"
+ "Examples:\n"
+ " /connect freenode\n"
+ " /connect irc.oftc.net/6667\n"
+ " /connect irc6.oftc.net/6667 -ipv6\n"
+ " /connect irc6.oftc.net/6697 -ipv6 -ssl\n"
+ " /connect my.server.org/6697 -ssl -password=test\n"
+ " /connect irc://nick@irc.oftc.net/#channel\n"
+ " /connect -switch"),
+ "%(irc_servers)|-all|-auto|-open|-nojoin|-switch|%*",
+ &irc_command_connect, NULL);
+ weechat_hook_command (
+ "ctcp",
+ N_("send a CTCP message (Client-To-Client Protocol)"),
+ N_("<target> <type> [<arguments>]"),
+ N_(" target: nick or channel to send CTCP to\n"
+ " type: CTCP type (examples: \"version\", \"ping\", ..)\n"
+ "arguments: arguments for CTCP"),
+ "%(irc_channel)|%(nicks) action|clientinfo|finger|ping|source|time|"
+ "userinfo|version",
+ &irc_command_ctcp, NULL);
+ weechat_hook_command (
+ "cycle",
+ N_("leave and rejoin a channel"),
+ N_("[<channel>[,<channel>...]] [<message>]"),
+ N_("channel: channel name for cycle\n"
+ "message: part message (displayed to other users)"),
+ "%(irc_msg_part)", &irc_command_cycle, NULL);
+ weechat_hook_command (
+ "dcc",
+ N_("start a DCC (file transfer or direct chat)"),
+ N_("chat <nick> || send <nick> <file>"),
+ N_("nick: nick for chat or file\n"
+ "file: filename (on local host)\n"
+ "\n"
+ "Examples:\n"
+ " chat with nick \"toto\":\n"
+ " /dcc chat toto\n"
+ " send file \"/home/foo/bar.txt\" to nick \"toto\":\n"
+ " /dcc send toto /home/foo/bar.txt"),
+ "chat %(nicks)"
+ " || send %(nicks) %(filename)",
+ &irc_command_dcc, NULL);
+ weechat_hook_command (
+ "dehalfop",
+ N_("remove channel half-operator status from nick(s)"),
+ N_("<nick> [<nick>...]"),
+ N_("nick: nick or mask (can start or end with \"*\" as wildcard)\n"
+ " *: remove channel half-operator status from everybody on channel "
+ "except yourself"),
+ "%(nicks)", &irc_command_dehalfop, NULL);
+ weechat_hook_command (
+ "deop",
+ N_("remove channel operator status from nick(s)"),
+ N_("<nick> [<nick>...] || * -yes"),
+ N_("nick: nick or mask (can start or end with \"*\" as wildcard)\n"
+ " *: remove channel operator status from everybody on channel "
+ "except yourself"),
+ "%(nicks)|%*", &irc_command_deop, NULL);
+ weechat_hook_command (
+ "devoice",
+ N_("remove voice from nick(s)"),
+ N_("<nick> [<nick>...] || * -yes"),
+ N_("nick: nick or mask (can start or end with \"*\" as wildcard)\n"
+ " *: remove voice from everybody on channel"),
+ "%(nicks)|%*", &irc_command_devoice, NULL);
+ weechat_hook_command (
+ "die",
+ N_("shutdown the server"),
+ N_("[<target>]"),
+ N_("target: server name"),
+ NULL, &irc_command_die, NULL);
+ weechat_hook_command (
+ "disconnect",
+ N_("disconnect from one or all IRC servers"),
+ N_("[<server>|-all|-pending [<reason>]]"),
+ N_(" server: server name to disconnect\n"
+ " -all: disconnect from all servers\n"
+ "-pending: cancel auto-reconnection on servers currently "
+ "reconnecting\n"
+ " reason: reason for quit"),
+ "%(irc_servers)|-all|-pending",
+ &irc_command_disconnect, NULL);
+ weechat_hook_command (
+ "halfop",
+ N_("give channel half-operator status to nick(s)"),
+ N_("<nick> [<nick>...] || * -yes"),
+ N_("nick: nick or mask (can start or end with \"*\" as wildcard)\n"
+ " *: give channel half-operator status to everybody on channel"),
+ "%(nicks)", &irc_command_halfop, NULL);
+ weechat_hook_command (
+ "ignore",
+ N_("ignore nicks/hosts from servers or channels"),
+ N_("list"
+ " || add [re:]<nick> [<server> [<channel>]]"
+ " || del <number>|-all"),
+ N_(" list: list all ignores\n"
+ " add: add an ignore\n"
+ " nick: nick or hostname (can be a POSIX extended regular "
+ "expression if \"re:\" is given or a mask using \"*\" to replace one "
+ "or more chars)\n"
+ " del: delete an ignore\n"
+ " number: number of ignore to delete (look at list to find it)\n"
+ " -all: delete all ignores\n"
+ " server: internal server name where ignore is working\n"
+ " channel: channel name where ignore is working\n"
+ "\n"
+ "Note: the regular expression can start with \"(?-i)\" to become "
+ "case sensitive.\n"
+ "\n"
+ "Examples:\n"
+ " ignore nick \"toto\" everywhere:\n"
+ " /ignore add toto\n"
+ " ignore host \"toto@domain.com\" on freenode server:\n"
+ " /ignore add toto@domain.com freenode\n"
+ " ignore host \"toto*@*.domain.com\" on freenode/#weechat:\n"
+ " /ignore add toto*@*.domain.com freenode #weechat"),
+ "list"
+ " || add %(irc_channel_nicks_hosts) %(irc_servers) %(irc_channels) %-"
+ " || del -all|%(irc_ignores_numbers) %-",
+ &irc_command_ignore, NULL);
+ weechat_hook_command (
+ "info",
+ N_("get information describing the server"),
+ N_("[<target>]"),
+ N_("target: server name"),
+ NULL, &irc_command_info, NULL);
+ weechat_hook_command (
+ "invite",
+ N_("invite a nick on a channel"),
+ N_("<nick> [<nick>...] [<channel>]"),
+ N_(" nick: nick to invite\n"
+ "channel: channel to invite"),
+ "%(nicks) %(irc_server_channels)", &irc_command_invite, NULL);
+ weechat_hook_command (
+ "ison",
+ N_("check if a nick is currently on IRC"),
+ N_("<nick> [<nick>...]"),
+ N_("nick: nick"),
+ "%(nicks)|%*", &irc_command_ison, NULL);
+ weechat_hook_command (
+ "join",
+ N_("join a channel"),
+ N_("[-noswitch] [-server <server>] "
+ "[<channel1>[,<channel2>...]] [<key1>[,<key2>...]]"),
+ N_("-noswitch: do not switch to new buffer\n"
+ " server: send to this server (internal name)\n"
+ " channel: channel name to join\n"
+ " key: key to join the channel (channels with a key must be the "
+ "first in list)\n"
+ "\n"
+ "Examples:\n"
+ " /join #weechat\n"
+ " /join #protectedchan,#weechat key\n"
+ " /join -server freenode #weechat\n"
+ " /join -noswitch #weechat"),
+ "%(irc_channels)|-noswitch|-server|%(irc_servers)|%*",
+ &irc_command_join, NULL);
+ weechat_hook_command (
+ "kick",
+ N_("forcibly remove a user from a channel"),
+ N_("[<channel>] <nick> [<reason>]"),
+ N_("channel: channel where user is\n"
+ " nick: nick to kick\n"
+ " reason: reason for kick (special variables $nick, $channel and "
+ "$server are replaced by their value)"),
+ "%(nicks) %(irc_msg_kick) %-", &irc_command_kick, NULL);
+ weechat_hook_command (
+ "kickban",
+ N_("kicks and bans a nick from a channel"),
+ N_("[<channel>] <nick> [<reason>]"),
+ N_("channel: channel where user is\n"
+ " nick: nick to kick and ban\n"
+ " reason: reason for kick (special variables $nick, $channel and "
+ "$channel are replaced by their value)\n"
+ "\n"
+ "It is possible to kick/ban with a mask, nick will be extracted from "
+ "mask and replaced by \"*\".\n"
+ "\n"
+ "Example:\n"
+ " ban \"*!*@host.com\" and then kick \"toto\":\n"
+ " /kickban toto!*@host.com"),
+ "%(irc_channel_nicks_hosts) %(irc_msg_kick) %-",
+ &irc_command_kickban, NULL);
+ weechat_hook_command (
+ "kill",
+ N_("close client-server connection"),
+ N_("<nick> <reason>"),
+ N_(" nick: nick to kill\n"
+ "reason: reason for kill"),
+ "%(nicks) %-", &irc_command_kill, NULL);
+ weechat_hook_command (
+ "links",
+ N_("list all servernames which are known by the server answering the "
+ "query"),
+ N_("[[<server>] <server_mask>]"),
+ N_(" server: this server should answer the query\n"
+ "server_mask: list of servers must match this mask"),
+ NULL, &irc_command_links, NULL);
+ weechat_hook_command (
+ "list",
+ N_("list channels and their topic"),
+ N_("[<channel>[,<channel>...]] [<server>] "
+ "[-re <regex>]"),
+ N_("channel: channel to list\n"
+ " server: server name\n"
+ " regex: POSIX extended regular expression used to filter results "
+ "(case insensitive, can start by \"(?-i)\" to become case "
+ "sensitive)\n"
+ "\n"
+ "Examples:\n"
+ " list all channels on server (can be very slow on large networks):\n"
+ " /list\n"
+ " list channel #weechat:\n"
+ " /list #weechat\n"
+ " list all channels beginning with \"#weechat\" (can be very slow "
+ "on large networks):\n"
+ " /list -re #weechat.*"),
+ NULL, &irc_command_list, NULL);
+ weechat_hook_command (
+ "lusers",
+ N_("get statistics about the size of the IRC network"),
+ N_("[<mask> [<target>]]"),
+ N_(" mask: servers matching the mask only\n"
+ "target: server for forwarding request"),
+ NULL, &irc_command_lusers, NULL);
+ weechat_hook_command (
+ "map",
+ N_("show a graphical map of the IRC network"),
+ "",
+ "",
+ NULL, &irc_command_map, NULL);
+ weechat_hook_command (
+ "me",
+ N_("send a CTCP action to the current channel"),
+ N_("<message>"),
+ N_("message: message to send"),
+ NULL, &irc_command_me, NULL);
+ weechat_hook_command (
+ "mode",
+ N_("change channel or user mode"),
+ N_("[<channel>] [+|-]o|p|s|i|t|n|m|l|b|e|v|k [<arguments>]"
+ " || <nick> [+|-]i|s|w|o"),
+ N_("channel modes:\n"
+ " channel: channel name to modify (default is current one)\n"
+ " o: give/take channel operator privileges\n"
+ " p: private channel flag\n"
+ " s: secret channel flag\n"
+ " i: invite-only channel flag\n"
+ " t: topic settable by channel operator only flag\n"
+ " n: no messages to channel from clients on the outside\n"
+ " m: moderated channel\n"
+ " l: set the user limit to channel\n"
+ " b: set a ban mask to keep users out\n"
+ " e: set exception mask\n"
+ " v: give/take the ability to speak on a moderated channel\n"
+ " k: set a channel key (password)\n"
+ "user modes:\n"
+ " nick: nick to modify\n"
+ " i: mark a user as invisible\n"
+ " s: mark a user for receive server notices\n"
+ " w: user receives wallops\n"
+ " o: operator flag\n"
+ "\n"
+ "List of modes is not comprehensive, you should read documentation "
+ "about your server to see all possible modes.\n"
+ "\n"
+ "Examples:\n"
+ " protect topic on channel #weechat:\n"
+ " /mode #weechat +t\n"
+ " become invisible on server:\n"
+ " /mode nick +i"),
+ "%(irc_channel)|%(irc_server_nick)", &irc_command_mode, NULL);
+ weechat_hook_command (
+ "motd",
+ N_("get the \"Message Of The Day\""),
+ N_("[<target>]"),
+ N_("target: server name"),
+ NULL, &irc_command_motd, NULL);
+ weechat_hook_command (
+ "msg",
+ N_("send message to a nick or channel"),
+ N_("[-server <server>] <target>[,<target>...] <text>"),
+ N_("server: send to this server (internal name)\n"
+ "target: nick or channel (may be mask, '*' = current channel)\n"
+ " text: text to send"),
+ "-server %(irc_servers)"
+ " || %(nicks)",
+ &irc_command_msg, NULL);
+ weechat_hook_command (
+ "names",
+ N_("list nicks on channels"),
+ N_("[<channel>[,<channel>...]]"),
+ N_("channel: channel name"),
+ "%(irc_channels)", &irc_command_names, NULL);
+ weechat_hook_command (
+ "nick",
+ N_("change current nick"),
+ N_("[-all] <nick>"),
+ N_("-all: set new nick for all connected servers\n"
+ "nick: new nick"),
+ "-all %(irc_server_nick)"
+ " || %(irc_server_nick)",
+ &irc_command_nick, NULL);
+ weechat_hook_command (
+ "notice",
+ N_("send notice message to user"),
+ N_("[-server <server>] <target> <text>"),
+ N_("server: send to this server (internal name)\n"
+ "target: nick or channel\n"
+ " text: text to send"),
+ "%(nicks)|-server %(irc_servers)", &irc_command_notice, NULL);
+ weechat_hook_command (
+ "notify",
+ N_("add a notification for presence or away status of nicks on servers"),
+ N_("add <nick> [<server> [-away]]"
+ " || del <nick>|-all [<server>]"),
+ N_(" add: add a notification\n"
+ " nick: nick\n"
+ "server: internal server name (by default current server)\n"
+ " -away: notify when away message is changed (by doing whois on "
+ "nick)\n"
+ " del: delete a notification\n"
+ " -all: delete all notifications\n"
+ "\n"
+ "Without argument, this command displays notifications for current "
+ "server (or all servers if command is issued on core buffer).\n"
+ "\n"
+ "Examples:\n"
+ " notify when \"toto\" joins/quits current server:\n"
+ " /notify add toto\n"
+ " notify when \"toto\" joins/quits freenode server:\n"
+ " /notify add toto freenode\n"
+ " notify when \"toto\" is away or back on freenode server:\n"
+ " /notify add toto freenode -away"),
+ "add %(irc_channel_nicks) %(irc_servers) -away %-"
+ " || del -all|%(irc_notify_nicks) %(irc_servers) %-",
+ &irc_command_notify, NULL);
+ weechat_hook_command (
+ "op",
+ N_("give channel operator status to nick(s)"),
+ N_("<nick> [<nick>...] || * -yes"),
+ N_("nick: nick or mask (can start or end with \"*\" as wildcard)\n"
+ " *: give channel operator status to everybody on channel"),
+ "%(nicks)|%*", &irc_command_op, NULL);
+ weechat_hook_command (
+ "oper",
+ N_("get operator privileges"),
+ N_("<user> <password>"),
+ N_(" user: user\n"
+ "password: password"),
+ NULL, &irc_command_oper, NULL);
+ weechat_hook_command (
+ "part",
+ N_("leave a channel"),
+ N_("[<channel>[,<channel>...]] [<message>]"),
+ N_("channel: channel name to leave\n"
+ "message: part message (displayed to other users)"),
+ "%(irc_msg_part)", &irc_command_part, NULL);
+ weechat_hook_command (
+ "ping",
+ N_("send a ping to server"),
+ N_("<server1> [<server2>]"),
+ N_("server1: server\n"
+ "server2: forward ping to this server"),
+ NULL, &irc_command_ping, NULL);
+ weechat_hook_command (
+ "pong",
+ N_("answer to a ping message"),
+ N_("<daemon> [<daemon2>]"),
+ N_(" daemon: daemon who has responded to Ping message\n"
+ "daemon2: forward message to this daemon"),
+ NULL, &irc_command_pong, NULL);
+ weechat_hook_command (
+ "query",
+ N_("send a private message to a nick"),
+ N_("[-server <server>] <nick>[,<nick>...] [<text>]"),
+ N_("server: send to this server (internal name)\n"
+ " nick: nick for private conversation\n"
+ " text: text to send"),
+ "%(nicks)|-server %(irc_servers)", &irc_command_query, NULL);
+ weechat_hook_command (
+ "quiet",
+ N_("quiet nicks or hosts"),
+ N_("[<channel>] [<nick> [<nick>...]]"),
+ N_("channel: channel for quiet\n"
+ " nick: user or host to quiet\n"
+ "\n"
+ "Without argument, this command display quiet list for current "
+ "channel."),
+ "%(irc_channel_nicks_hosts)", &irc_command_quiet, NULL);
+ weechat_hook_command (
+ "quote",
+ N_("send raw data to server without parsing"),
+ N_("[-server <server>] <data>"),
+ N_("server: send to this server (internal name)\n"
+ " data: raw data to send"),
+ "-server %(irc_servers)", &irc_command_quote, NULL);
+ weechat_hook_command (
+ "reconnect",
+ N_("reconnect to server(s)"),
+ N_("<server> [<server>...] [-nojoin] [-switch]"
+ " || -all [-nojoin] [-switch]"),
+ N_(" server: server name to reconnect\n"
+ " -all: reconnect to all servers\n"
+ "-nojoin: do not join any channel (even if autojoin is enabled on "
+ "server)\n"
+ "-switch: switch to next server address"),
+ "%(irc_servers)|-all|-nojoin|-switch|%*",
+ &irc_command_reconnect, NULL);
+ weechat_hook_command (
+ "rehash",
+ N_("tell the server to reload its config file"),
+ N_("[<option>]"),
+ N_("option: extra option, for some servers"),
+ NULL, &irc_command_rehash, NULL);
+ weechat_hook_command (
+ "restart",
+ N_("tell the server to restart itself"),
+ N_("[<target>]"),
+ N_("target: server name"),
+ NULL, &irc_command_restart, NULL);
+ weechat_hook_command (
+ "sajoin",
+ N_("force a user to join channel(s)"),
+ N_("<nick> <channel>[,<channel>...]"),
+ N_(" nick: nick\n"
+ "channel: channel name"),
+ "%(nicks) %(irc_server_channels)", &irc_command_sajoin, NULL);
+ weechat_hook_command (
+ "samode",
+ N_("change mode on channel, without having operator status"),
+ N_("<channel> <mode>"),
+ N_("channel: channel name\n"
+ " mode: mode for channel"),
+ "%(irc_server_channels)", &irc_command_samode, NULL);
+ weechat_hook_command (
+ "sanick",
+ N_("force a user to use another nick"),
+ N_("<nick> <new_nick>"),
+ N_(" nick: nick\n"
+ "new_nick: new nick"),
+ "%(nicks) %(nicks)", &irc_command_sanick, NULL);
+ weechat_hook_command (
+ "sapart",
+ N_("force a user to leave channel(s)"),
+ N_("<nick> <channel>[,<channel>...]"),
+ N_(" nick: nick\n"
+ "channel: channel name"),
+ "%(nicks) %(irc_server_channels)", &irc_command_sapart, NULL);
+ weechat_hook_command (
+ "saquit",
+ N_("force a user to quit server with a reason"),
+ N_("<nick> <reason>"),
+ N_(" nick: nick\n"
+ "reason: reason"),
+ "%(nicks)", &irc_command_saquit, NULL);
+ weechat_hook_command (
+ "service",
+ N_("register a new service"),
+ N_("<nick> <reserved> <distribution> <type> <reserved> <info>"),
+ N_("distribution: visibility of service\n"
+ " type: reserved for future usage"),
+ NULL, &irc_command_service, NULL);
+ weechat_hook_command (
+ "server",
+ N_("list, add or remove IRC servers"),
+ N_("list|listfull [<server>]"
+ " || add <server> <hostname>[/<port>] [-temp] [-<option>[=<value>]] "
+ "[-no<option>]"
+ " || copy|rename <server> <new_name>"
+ " || del|keep <server>"
+ " || deloutq|jump|raw"),
+ N_(" list: list servers (without argument, this list is displayed)\n"
+ "listfull: list servers with detailed info for each server\n"
+ " add: create a new server\n"
+ " server: server name, for internal and display use\n"
+ "hostname: name or IP address of server, with optional port "
+ "(default: 6667), many addresses can be separated by a comma\n"
+ " temp: create temporary server (not saved)\n"
+ " option: set option for server (for boolean option, value can be "
+ "omitted)\n"
+ "nooption: set boolean option to 'off' (for example: -nossl)\n"
+ " copy: duplicate a server\n"
+ " rename: rename a server\n"
+ " keep: keep server in config file (for temporary servers only)\n"
+ " del: delete a server\n"
+ " deloutq: delete messages out queue for all servers (all messages "
+ "WeeChat is currently sending)\n"
+ " jump: jump to server buffer\n"
+ " raw: open buffer with raw IRC data\n"
+ "\n"
+ "Examples:\n"
+ " /server listfull\n"
+ " /server add oftc irc.oftc.net/6697 -ssl -autoconnect\n"
+ " /server add oftc6 irc6.oftc.net/6697 -ipv6 -ssl\n"
+ " /server add freenode2 chat.eu.freenode.net/6667,"
+ "chat.us.freenode.net/6667\n"
+ " /server add freenode3 irc.freenode.net -password=mypass\n"
+ " /server copy oftc oftcbis\n"
+ " /server rename oftc newoftc\n"
+ " /server del freenode\n"
+ " /server deloutq"),
+ "list %(irc_servers)"
+ " || listfull %(irc_servers)"
+ " || add %(irc_servers)"
+ " || copy %(irc_servers) %(irc_servers)"
+ " || rename %(irc_servers) %(irc_servers)"
+ " || keep %(irc_servers)"
+ " || del %(irc_servers)"
+ " || deloutq"
+ " || jump"
+ " || raw",
+ &irc_command_server, NULL);
+ weechat_hook_command (
+ "servlist",
+ N_("list services currently connected to the network"),
+ N_("[<mask> [<type>]]"),
+ N_("mask: list only services matching this mask\n"
+ "type: list only services of this type"),
+ NULL, &irc_command_servlist, NULL);
+ weechat_hook_command (
+ "squery",
+ N_("deliver a message to a service"),
+ N_("<service> <text>"),
+ N_("service: name of service\n"
+ " text: text to send"),
+ NULL, &irc_command_squery, NULL);
+ weechat_hook_command (
+ "squit",
+ N_("disconnect server links"),
+ N_("<server> <comment>"),
+ N_( " server: server name\n"
+ "comment: comment for quit"),
+ NULL, &irc_command_squit, NULL);
+ weechat_hook_command (
+ "stats",
+ N_("query statistics about server"),
+ N_("[<query> [<server>]]"),
+ N_(" query: c/h/i/k/l/m/o/y/u (see RFC1459)\n"
+ "server: server name"),
+ NULL, &irc_command_stats, NULL);
+ weechat_hook_command (
+ "summon",
+ N_("give users who are on a host running an IRC "
+ "server a message asking them to please join "
+ "IRC"),
+ N_("<user> [<target> [<channel>]]"),
+ N_(" user: username\n"
+ " target: server name\n"
+ "channel: channel name"),
+ NULL, &irc_command_summon, NULL);
+ weechat_hook_command (
+ "time",
+ N_("query local time from server"),
+ N_("[<target>]"),
+ N_("target: query time from specified server"),
+ NULL, &irc_command_time, NULL);
+ weechat_hook_command (
+ "topic",
+ N_("get/set channel topic"),
+ N_("[<channel>] [<topic>|-delete]"),
+ N_("channel: channel name\n"
+ " topic: new topic for channel\n"
+ "-delete: delete channel topic"),
+ "%(irc_channel_topic)|-delete", &irc_command_topic, NULL);
+ weechat_hook_command (
+ "trace",
+ N_("find the route to specific server"),
+ N_("[<target>]"),
+ N_("target: server"),
+ NULL, &irc_command_trace, NULL);
+ weechat_hook_command (
+ "unban",
+ N_("unban nicks or hosts"),
+ N_("[<channel>] <nick> [<nick>...]"),
+ N_("channel: channel for unban\n"
+ " nick: user or host to unban"),
+ NULL, &irc_command_unban, NULL);
+ weechat_hook_command (
+ "userhost",
+ N_("return a list of information about nicks"),
+ N_("<nick> [<nick>...]"),
+ N_("nick: nick"),
+ "%(nicks)", &irc_command_userhost, NULL);
+ weechat_hook_command (
+ "users",
+ N_("list of users logged into the server"),
+ N_("[<target>]"),
+ N_("target: server"),
+ NULL, &irc_command_users, NULL);
+ weechat_hook_command (
+ "version",
+ N_("give the version info of nick or server (current or specified)"),
+ N_("[<server>|<nick>]"),
+ N_("server: server name\n"
+ " nick: nick"),
+ "%(nicks)", &irc_command_version, NULL);
+ weechat_hook_command (
+ "voice",
+ N_("give voice to nick(s)"),
+ N_("<nick> [<nick>...]"),
+ N_("nick: nick or mask (can start or end with \"*\" as wildcard)\n"
+ " *: give voice to everybody on channel"),
+ "%(nicks)|%*", &irc_command_voice, NULL);
+ weechat_hook_command (
+ "wallchops",
+ N_("send a notice to channel ops"),
+ N_("[<channel>] <text>"),
+ N_("channel: channel name\n"
+ " text: text to send"),
+ NULL, &irc_command_wallchops, NULL);
+ weechat_hook_command (
+ "wallops",
+ N_("send a message to all currently connected users who have set the "
+ "'w' user mode for themselves"),
+ N_("<text>"),
+ N_("text: text to send"),
+ NULL, &irc_command_wallops, NULL);
+ weechat_hook_command (
+ "who",
+ N_("generate a query which returns a list of information"),
+ N_("[<mask> [o]]"),
+ N_("mask: only information which match this mask\n"
+ " o: only operators are returned according to the mask supplied"),
+ "%(irc_channels)", &irc_command_who, NULL);
+ weechat_hook_command (
+ "whois",
+ N_("query information about user(s)"),
+ N_("[<server>] [<nick>[,<nick>...]]"),
+ N_("server: server name\n"
+ " nick: nick (may be a mask)\n"
+ "\n"
+ "Without argument, this command will do a whois on:\n"
+ "- your own nick if buffer is a server/channel\n"
+ "- remote nick if buffer is a private."),
+ "%(nicks)", &irc_command_whois, NULL);
+ weechat_hook_command (
+ "whowas",
+ N_("ask for information about a nick which no longer exists"),
+ N_("<nick>[,<nick>...] [<count> [<target>]]"),
+ N_(" nick: nick to search\n"
+ " count: number of replies to return (full search if negative "
+ "number)\n"
+ "target: reply should match this mask"),
+ "%(nicks)", &irc_command_whowas, NULL);
}
diff --git a/src/plugins/logger/logger.c b/src/plugins/logger/logger.c
index e9ede3f78..d157f896b 100644
--- a/src/plugins/logger/logger.c
+++ b/src/plugins/logger/logger.c
@@ -1314,46 +1314,46 @@ weechat_plugin_init (struct t_weechat_plugin *plugin, int argc, char *argv[])
logger_config_read ();
/* command /logger */
- weechat_hook_command ("logger",
- N_("logger plugin configuration"),
- N_("list"
- " || set <level>"
- " || flush"
- " || disable"),
- N_(" list: show logging status for opened buffers\n"
- " set: set logging level on current buffer\n"
- " level: level for messages to be logged (0 = "
- "logging disabled, 1 = a few messages (most "
- "important) .. 9 = all messages)\n"
- " flush: write all log files now\n"
- "disable: disable logging on current buffer (set "
- "level to 0)\n\n"
- "Options \"logger.level.*\" and \"logger.mask.*\" "
- "can be used to set level or mask for a buffer, "
- "or buffers beginning with name.\n\n"
- "Log levels used by IRC plugin:\n"
- " 1: user message, notice, private\n"
- " 2: nick change\n"
- " 3: server message\n"
- " 4: join/part/quit\n"
- " 9: all other messages\n\n"
- "Examples:\n"
- " set level to 5 for current buffer:\n"
- " /logger set 5\n"
- " disable logging for current buffer:\n"
- " /logger disable\n"
- " set level to 3 for all IRC buffers:\n"
- " /set logger.level.irc 3\n"
- " disable logging for main WeeChat buffer:\n"
- " /set logger.level.core.weechat 0\n"
- " use a directory per IRC server and a file per "
- "channel inside:\n"
- " /set logger.mask.irc \"$server/$channel.weechatlog\""),
- "list"
- " || set 1|2|3|4|5|6|7|8|9"
- " || flush"
- " || disable",
- &logger_command_cb, NULL);
+ weechat_hook_command (
+ "logger",
+ N_("logger plugin configuration"),
+ N_("list"
+ " || set <level>"
+ " || flush"
+ " || disable"),
+ N_(" list: show logging status for opened buffers\n"
+ " set: set logging level on current buffer\n"
+ " level: level for messages to be logged (0 = logging disabled, "
+ "1 = a few messages (most important) .. 9 = all messages)\n"
+ " flush: write all log files now\n"
+ "disable: disable logging on current buffer (set level to 0)\n"
+ "\n"
+ "Options \"logger.level.*\" and \"logger.mask.*\" can be used to set "
+ "level or mask for a buffer, or buffers beginning with name.\n"
+ "\n"
+ "Log levels used by IRC plugin:\n"
+ " 1: user message, notice, private\n"
+ " 2: nick change\n"
+ " 3: server message\n"
+ " 4: join/part/quit\n"
+ " 9: all other messages\n"
+ "\n"
+ "Examples:\n"
+ " set level to 5 for current buffer:\n"
+ " /logger set 5\n"
+ " disable logging for current buffer:\n"
+ " /logger disable\n"
+ " set level to 3 for all IRC buffers:\n"
+ " /set logger.level.irc 3\n"
+ " disable logging for main WeeChat buffer:\n"
+ " /set logger.level.core.weechat 0\n"
+ " use a directory per IRC server and a file per channel inside:\n"
+ " /set logger.mask.irc \"$server/$channel.weechatlog\""),
+ "list"
+ " || set 1|2|3|4|5|6|7|8|9"
+ " || flush"
+ " || disable",
+ &logger_command_cb, NULL);
logger_start_buffer_all (1);
diff --git a/src/plugins/plugin-script.c b/src/plugins/plugin-script.c
index 60a547ffd..a4fd21a4a 100644
--- a/src/plugins/plugin-script.c
+++ b/src/plugins/plugin-script.c
@@ -154,30 +154,28 @@ plugin_script_init (struct t_weechat_plugin *weechat_plugin,
"%s",
string);
}
- weechat_hook_command (weechat_plugin->name,
- N_("list/load/unload scripts"),
- N_("list|listfull [<name>]"
- " || load [-q] <filename>"
- " || autoload"
- " || reload|unload [-q] [<name>]"),
- N_(" list: list loaded scripts\n"
- "listfull: list loaded scripts (verbose)\n"
- " load: load a script\n"
- "autoload: load all scripts in \"autoload\" "
- "directory\n"
- " reload: reload a script (if no name given, "
- "unload all scripts, then load all scripts in "
- "\"autoload\" directory)\n"
- " unload: unload a script (if no name given, "
- "unload all scripts)\n"
- "filename: script (file) to load\n"
- " name: a script name (name used in call to "
- "\"register\" function)\n"
- " -q: quiet mode: do not display messages\n\n"
- "Without argument, this command "
- "lists all loaded scripts."),
- completion,
- init->callback_command, NULL);
+ weechat_hook_command (
+ weechat_plugin->name,
+ N_("list/load/unload scripts"),
+ N_("list|listfull [<name>]"
+ " || load [-q] <filename>"
+ " || autoload"
+ " || reload|unload [-q] [<name>]"),
+ N_(" list: list loaded scripts\n"
+ "listfull: list loaded scripts (verbose)\n"
+ " load: load a script\n"
+ "autoload: load all scripts in \"autoload\" directory\n"
+ " reload: reload a script (if no name given, unload all scripts, "
+ "then load all scripts in \"autoload\" directory)\n"
+ " unload: unload a script (if no name given, unload all scripts)\n"
+ "filename: script (file) to load\n"
+ " name: a script name (name used in call to \"register\" "
+ "function)\n"
+ " -q: quiet mode: do not display messages\n"
+ "\n"
+ "Without argument, this command lists all loaded scripts."),
+ completion,
+ init->callback_command, NULL);
if (string)
free (string);
if (completion)
diff --git a/src/plugins/relay/relay-command.c b/src/plugins/relay/relay-command.c
index 1a7b3c28f..9e35eb42e 100644
--- a/src/plugins/relay/relay-command.c
+++ b/src/plugins/relay/relay-command.c
@@ -307,60 +307,58 @@ relay_command_relay (void *data, struct t_gui_buffer *buffer, int argc,
void
relay_command_init ()
{
- weechat_hook_command ("relay",
- N_("relay control"),
- N_("list|listfull|listrelay"
- " || add [ipv4.][ipv6.][ssl.]<protocol.name> <port>"
- " || del [ipv4.][ipv6.][ssl.]<protocol.name>"
- " || raw"
- " || sslcertkey"),
- N_(" list: list relay clients (only active "
- "relays)\n"
- " listfull: list relay clients (verbose, all "
- "relays)\n"
- " listrelay: list relays (name and port)\n"
- " add: add relay for a protocol + name\n"
- " del: remove relay for a protocol + name\n"
- " ipv4: force use of IPv4\n"
- " ipv6: force use of IPv6\n"
- " ssl: enable SSL\n"
- "protocol.name: protocol and name to relay:\n"
- " - protocol \"irc\": name is the "
- "server to share (optional, if not given, the server "
- "name must be sent by client in command \"PASS\", "
- "with format: \"PASS server:password\")\n"
- " - protocol \"weechat\" (name is "
- "not used)\n"
- " port: port used for relay\n"
- " raw: open buffer with raw Relay data\n"
- " sslcertkey: set SSL certificate/key using path "
- "in option relay.network.ssl_cert_key\n\n"
- "Without argument, this command opens buffer "
- "with list of relay clients.\n\n"
- "Examples:\n"
- " irc proxy, for server \"freenode\":\n"
- " /relay add irc.freenode 8000\n"
- " irc proxy, for server \"freenode\", with SSL:\n"
- " /relay add ssl.irc.freenode 8001\n"
- " irc proxy, for all servers (client will choose), "
- "with SSL:\n"
- " /relay add ssl.irc 8002\n"
- " weechat protocol:\n"
- " /relay add weechat 9000\n"
- " weechat protocol with SSL:\n"
- " /relay add ssl.weechat 9001\n"
- " weechat protocol with SSL, using only IPv4:\n"
- " /relay add ipv4.ssl.weechat 9001\n"
- " weechat protocol with SSL, using only IPv6:\n"
- " /relay add ipv6.ssl.weechat 9001\n"
- " weechat protocol with SSL, using IPv4 + IPv6:\n"
- " /relay add ipv4.ipv6.ssl.weechat 9001"),
- "list %(relay_relays)"
- " || listfull %(relay_relays)"
- " || listrelay"
- " || add %(relay_protocol_name) %(relay_free_port)"
- " || del %(relay_relays)"
- " || raw"
- " || sslcertkey",
- &relay_command_relay, NULL);
+ weechat_hook_command (
+ "relay",
+ N_("relay control"),
+ N_("list|listfull|listrelay"
+ " || add [ipv4.][ipv6.][ssl.]<protocol.name> <port>"
+ " || del [ipv4.][ipv6.][ssl.]<protocol.name>"
+ " || raw"
+ " || sslcertkey"),
+ N_(" list: list relay clients (only active relays)\n"
+ " listfull: list relay clients (verbose, all relays)\n"
+ " listrelay: list relays (name and port)\n"
+ " add: add relay for a protocol + name\n"
+ " del: remove relay for a protocol + name\n"
+ " ipv4: force use of IPv4\n"
+ " ipv6: force use of IPv6\n"
+ " ssl: enable SSL\n"
+ "protocol.name: protocol and name to relay:\n"
+ " - protocol \"irc\": name is the server to share "
+ "(optional, if not given, the server name must be sent by client in "
+ "command \"PASS\", with format: \"PASS server:password\")\n"
+ " - protocol \"weechat\" (name is not used)\n"
+ " port: port used for relay\n"
+ " raw: open buffer with raw Relay data\n"
+ " sslcertkey: set SSL certificate/key using path in option "
+ "relay.network.ssl_cert_key\n"
+ "\n"
+ "Without argument, this command opens buffer with list of relay "
+ "clients.\n"
+ "\n"
+ "Examples:\n"
+ " irc proxy, for server \"freenode\":\n"
+ " /relay add irc.freenode 8000\n"
+ " irc proxy, for server \"freenode\", with SSL:\n"
+ " /relay add ssl.irc.freenode 8001\n"
+ " irc proxy, for all servers (client will choose), with SSL:\n"
+ " /relay add ssl.irc 8002\n"
+ " weechat protocol:\n"
+ " /relay add weechat 9000\n"
+ " weechat protocol with SSL:\n"
+ " /relay add ssl.weechat 9001\n"
+ " weechat protocol with SSL, using only IPv4:\n"
+ " /relay add ipv4.ssl.weechat 9001\n"
+ " weechat protocol with SSL, using only IPv6:\n"
+ " /relay add ipv6.ssl.weechat 9001\n"
+ " weechat protocol with SSL, using IPv4 + IPv6:\n"
+ " /relay add ipv4.ipv6.ssl.weechat 9001"),
+ "list %(relay_relays)"
+ " || listfull %(relay_relays)"
+ " || listrelay"
+ " || add %(relay_protocol_name) %(relay_free_port)"
+ " || del %(relay_relays)"
+ " || raw"
+ " || sslcertkey",
+ &relay_command_relay, NULL);
}
diff --git a/src/plugins/rmodifier/rmodifier-command.c b/src/plugins/rmodifier/rmodifier-command.c
index bb3eeccf4..753a84f44 100644
--- a/src/plugins/rmodifier/rmodifier-command.c
+++ b/src/plugins/rmodifier/rmodifier-command.c
@@ -240,41 +240,41 @@ rmodifier_command_cb (void *data, struct t_gui_buffer *buffer, int argc,
void
rmodifier_command_init ()
{
- weechat_hook_command ("rmodifier",
- N_("alter modifier strings with regular expressions"),
- N_("list|listdefault"
- " || add <name> <modifiers> <groups> <regex>"
- " || del <name>|-all [<name>...]"
- " || missing"
- " || default -yes"),
- N_(" list: list all rmodifiers\n"
- "listdefault: list default rmodifiers\n"
- " add: add a rmodifier\n"
- " name: name of rmodifier\n"
- " modifiers: comma separated list of modifiers\n"
- " groups: action on groups captured in regular "
- "expression (inside parentheses): comma separated "
- "list of groups (from 1 to 9) with optional \"*\" "
- "after number to hide the group\n"
- " regex: POSIX extended regular expression "
- "(case insensitive, can start by \"(?-i)\" to "
- "become case sensitive)\n"
- " del: delete a rmodifier\n"
- " -all: delete all rmodifiers\n"
- " missing: add missing rmodifiers\n"
- " default: restore default rmodifiers\n\n"
- "Examples:\n"
- " hide everything typed after a command /password:\n"
- " /rmodifier add password input_text_display 1,2* ^(/password +)(.*)\n"
- " delete rmodifier \"password\":\n"
- " /rmodifier del password\n"
- " delete all rmodifiers:\n"
- " /rmodifier del -all"),
- "list"
- " || listdefault"
- " || add %(rmodifier)"
- " || del %(rmodifier)|-all %(rmodifier)|%*"
- " || missing"
- " || default",
- &rmodifier_command_cb, NULL);
+ weechat_hook_command (
+ "rmodifier",
+ N_("alter modifier strings with regular expressions"),
+ N_("list|listdefault"
+ " || add <name> <modifiers> <groups> <regex>"
+ " || del <name>|-all [<name>...]"
+ " || missing"
+ " || default -yes"),
+ N_(" list: list all rmodifiers\n"
+ "listdefault: list default rmodifiers\n"
+ " add: add a rmodifier\n"
+ " name: name of rmodifier\n"
+ " modifiers: comma separated list of modifiers\n"
+ " groups: action on groups captured in regular expression "
+ "(inside parentheses): comma separated list of groups (from 1 to 9) "
+ "with optional \"*\" after number to hide the group\n"
+ " regex: POSIX extended regular expression (case insensitive, "
+ "can start by \"(?-i)\" to become case sensitive)\n"
+ " del: delete a rmodifier\n"
+ " -all: delete all rmodifiers\n"
+ " missing: add missing rmodifiers\n"
+ " default: restore default rmodifiers\n"
+ "\n"
+ "Examples:\n"
+ " hide everything typed after a command /password:\n"
+ " /rmodifier add password input_text_display 1,2* ^(/password +)(.*)\n"
+ " delete rmodifier \"password\":\n"
+ " /rmodifier del password\n"
+ " delete all rmodifiers:\n"
+ " /rmodifier del -all"),
+ "list"
+ " || listdefault"
+ " || add %(rmodifier)"
+ " || del %(rmodifier)|-all %(rmodifier)|%*"
+ " || missing"
+ " || default",
+ &rmodifier_command_cb, NULL);
}
diff --git a/src/plugins/script/script-command.c b/src/plugins/script/script-command.c
index add172b0c..ce092af2e 100644
--- a/src/plugins/script/script-command.c
+++ b/src/plugins/script/script-command.c
@@ -263,97 +263,102 @@ script_command_script (void *data, struct t_gui_buffer *buffer, int argc,
void
script_command_init ()
{
- weechat_hook_command ("script",
- N_("WeeChat scripts manager"),
- N_("list [-o|-i] || search <text> || show <script>"
- " || load|unload|reload <script> [<script>...]"
- " || autoload|noautoload|toggleautoload <script> [<script>...]"
- " || install|remove|installremove|hold [-q] <script> [<script>...]"
- " || upgrade || update"),
- N_(" list: list loaded scripts (all languages)\n"
- " -o: send list of loaded scripts to buffer\n"
- " -i: copy list of loaded scripts in "
- "command line (for sending to buffer)\n"
- " search: search scripts by tags or text and "
- "display result on scripts buffer\n"
- " show: show detailed info about a script\n"
- " load: load script(s)\n"
- " unload: unload script(s)\n"
- " reload: reload script(s)\n"
- " autoload: autoload the script\n"
- " noautoload: do not autoload the script\n"
- "toggleautoload: toggle autoload\n"
- " install: install/upgrade script(s)\n"
- " remove: remove script(s)\n"
- " installremove: install or remove script(s), "
- "depending on current state\n"
- " hold: hold/unhold script(s) (a script held "
- "will not be upgraded any more and cannot be "
- "removed)\n"
- " -q: quiet mode: do not display messages\n"
- " upgrade: upgrade all installed scripts which "
- "are obsolete (new version available)\n"
- " update: update local scripts cache\n\n"
- "Without argument, this command opens a buffer "
- "with list of scripts.\n\n"
- "On script buffer, the possible status for each "
- "script are:\n"
- " * i a H r N\n"
- " | | | | | |\n"
- " | | | | | obsolete (new version available)\n"
- " | | | | running (loaded)\n"
- " | | | held\n"
- " | | autoloaded\n"
- " | installed\n"
- " popular script\n\n"
- "Keys on script buffer:\n"
- " alt+i install script\n"
- " alt+r remove script\n"
- " alt+l load script\n"
- " alt+L reload script\n"
- " alt+u unload script\n"
- " alt+A autoload script\n"
- " alt+h (un)hold script\n"
- " alt+v view script\n\n"
- "Input allowed on script buffer:\n"
- " i/r/l/L/u/h action on script (same as keys above)\n"
- " q close buffer\n"
- " $ refresh buffer\n"
- " s:x,y sort buffer using keys x and y (see /help "
- "script.look.sort)\n"
- " s: reset sort (use default sort)\n"
- " word(s) filter scripts: search word(s) in "
- "scripts (description, tags, ...)\n"
- " * remove filter\n\n"
- "Mouse actions on script buffer:\n"
- " wheel scroll list\n"
- " left button select script\n"
- " right button install/remove script\n\n"
- "Examples:\n"
- " /script search url\n"
- " /script install iset.pl buffers.pl\n"
- " /script remove iset.pl\n"
- " /script hold urlserver.py\n"
- " /script reload urlserver\n"
- " /script upgrade"),
- "list -o|-i"
- " || search %(script_tags)"
- " || show %(script_scripts)"
- " || load %(script_files)|%*"
- " || unload %(python_script)|%(perl_script)|"
- "%(ruby_script)|%(tcl_script)|%(lua_script)|"
- "%(guile_script)|%*"
- " || reload %(python_script)|%(perl_script)|"
- "%(ruby_script)|%(tcl_script)|%(lua_script)|"
- "%(guile_script)|%*"
- " || autoload %(script_scripts_installed)|%*"
- " || noautoload %(script_scripts_installed)|%*"
- " || toggleautoload %(script_scripts_installed)|%*"
- " || install %(script_scripts)|%*"
- " || remove %(script_scripts_installed)|%*"
- " || installremove %(script_scripts)|%*"
- " || hold %(script_scripts)|%*"
- " || update"
- " || upgrade",
- &script_command_script, NULL);
+ weechat_hook_command (
+ "script",
+ N_("WeeChat scripts manager"),
+ N_("list [-o|-i]"
+ " || search <text>"
+ " || show <script>"
+ " || load|unload|reload <script> [<script>...]"
+ " || autoload|noautoload|toggleautoload <script> [<script>...]"
+ " || install|remove|installremove|hold [-q] <script> [<script>...]"
+ " || upgrade"
+ " || update"),
+ N_(" list: list loaded scripts (all languages)\n"
+ " -o: send list of loaded scripts to buffer\n"
+ " -i: copy list of loaded scripts in command line (for "
+ "sending to buffer)\n"
+ " search: search scripts by tags or text and display result "
+ "on scripts buffer\n"
+ " show: show detailed info about a script\n"
+ " load: load script(s)\n"
+ " unload: unload script(s)\n"
+ " reload: reload script(s)\n"
+ " autoload: autoload the script\n"
+ " noautoload: do not autoload the script\n"
+ "toggleautoload: toggle autoload\n"
+ " install: install/upgrade script(s)\n"
+ " remove: remove script(s)\n"
+ " installremove: install or remove script(s), depending on current "
+ "state\n"
+ " hold: hold/unhold script(s) (a script held will not be "
+ "upgraded any more and cannot be removed)\n"
+ " -q: quiet mode: do not display messages\n"
+ " upgrade: upgrade all installed scripts which are obsolete "
+ "(new version available)\n"
+ " update: update local scripts cache\n"
+ "\n"
+ "Without argument, this command opens a buffer with list of scripts.\n"
+ "\n"
+ "On script buffer, the possible status for each script are:\n"
+ " * i a H r N\n"
+ " | | | | | |\n"
+ " | | | | | obsolete (new version available)\n"
+ " | | | | running (loaded)\n"
+ " | | | held\n"
+ " | | autoloaded\n"
+ " | installed\n"
+ " popular script\n"
+ "\n"
+ "Keys on script buffer:\n"
+ " alt+i install script\n"
+ " alt+r remove script\n"
+ " alt+l load script\n"
+ " alt+L reload script\n"
+ " alt+u unload script\n"
+ " alt+A autoload script\n"
+ " alt+h (un)hold script\n"
+ " alt+v view script\n"
+ "\n"
+ "Input allowed on script buffer:\n"
+ " i/r/l/L/u/h action on script (same as keys above)\n"
+ " q close buffer\n"
+ " $ refresh buffer\n"
+ " s:x,y sort buffer using keys x and y (see /help "
+ "script.look.sort)\n"
+ " s: reset sort (use default sort)\n"
+ " word(s) filter scripts: search word(s) in scripts "
+ "(description, tags, ...)\n"
+ " * remove filter\n"
+ "\n"
+ "Mouse actions on script buffer:\n"
+ " wheel scroll list\n"
+ " left button select script\n"
+ " right button install/remove script\n"
+ "\n"
+ "Examples:\n"
+ " /script search url\n"
+ " /script install iset.pl buffers.pl\n"
+ " /script remove iset.pl\n"
+ " /script hold urlserver.py\n"
+ " /script reload urlserver\n"
+ " /script upgrade"),
+ "list -o|-i"
+ " || search %(script_tags)"
+ " || show %(script_scripts)"
+ " || load %(script_files)|%*"
+ " || unload %(python_script)|%(perl_script)|%(ruby_script)|"
+ "%(tcl_script)|%(lua_script)|%(guile_script)|%*"
+ " || reload %(python_script)|%(perl_script)|%(ruby_script)|"
+ "%(tcl_script)|%(lua_script)|%(guile_script)|%*"
+ " || autoload %(script_scripts_installed)|%*"
+ " || noautoload %(script_scripts_installed)|%*"
+ " || toggleautoload %(script_scripts_installed)|%*"
+ " || install %(script_scripts)|%*"
+ " || remove %(script_scripts_installed)|%*"
+ " || installremove %(script_scripts)|%*"
+ " || hold %(script_scripts)|%*"
+ " || update"
+ " || upgrade",
+ &script_command_script, NULL);
}
diff --git a/src/plugins/xfer/xfer-command.c b/src/plugins/xfer/xfer-command.c
index dd6cb6693..58ea812e5 100644
--- a/src/plugins/xfer/xfer-command.c
+++ b/src/plugins/xfer/xfer-command.c
@@ -246,17 +246,19 @@ xfer_command_xfer (void *data, struct t_gui_buffer *buffer, int argc,
void
xfer_command_init ()
{
- weechat_hook_command ("me",
- N_("send a CTCP action to remote host"),
- N_("<message>"),
- N_("message: message to send"),
- NULL, &xfer_command_me, NULL);
- weechat_hook_command ("xfer",
- N_("xfer control"),
- "[list|listfull]",
- N_(" list: list xfer\n"
- "listfull: list xfer (verbose)\n\n"
- "Without argument, this command opens buffer "
- "with xfer list."),
- "list|listfull", &xfer_command_xfer, NULL);
+ weechat_hook_command (
+ "me",
+ N_("send a CTCP action to remote host"),
+ N_("<message>"),
+ N_("message: message to send"),
+ NULL, &xfer_command_me, NULL);
+ weechat_hook_command (
+ "xfer",
+ N_("xfer control"),
+ "[list|listfull]",
+ N_(" list: list xfer\n"
+ "listfull: list xfer (verbose)\n"
+ "\n"
+ "Without argument, this command opens buffer with xfer list."),
+ "list|listfull", &xfer_command_xfer, NULL);
}