summaryrefslogtreecommitdiff
path: root/src/irc/irc-commands.c
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2003-10-11 00:25:46 +0000
committerSebastien Helleu <flashcode@flashtux.org>2003-10-11 00:25:46 +0000
commitc6a53ea8ee3b1901c37adaf93f938501a511a818 (patch)
tree9817a9fd021c8f811b11ed930136044ca3b2bf40 /src/irc/irc-commands.c
parentd3fc2646a770597f058e61f6256b84239277096e (diff)
downloadweechat-c6a53ea8ee3b1901c37adaf93f938501a511a818.zip
Added commands: die, summon, users, wallops, userhost, ison ; fixed display bug (blinking text when scrolling)
Diffstat (limited to 'src/irc/irc-commands.c')
-rw-r--r--src/irc/irc-commands.c28
1 files changed, 26 insertions, 2 deletions
diff --git a/src/irc/irc-commands.c b/src/irc/irc-commands.c
index 3bd6c7fd6..0d58f59ec 100644
--- a/src/irc/irc-commands.c
+++ b/src/irc/irc-commands.c
@@ -49,6 +49,9 @@ t_irc_command irc_commands[] =
{ "devoice", N_("removes voice from nickname(s)"),
N_("nickname [nickname]"), "",
1, 1, 1, irc_cmd_send_devoice, NULL, NULL },
+ { "die", N_("shutdown the server"),
+ "", "",
+ 0, 0, 1, NULL, irc_cmd_send_die, NULL },
{ "error", N_("error received from IRC server"), "", "", 0, 0, 1, NULL, NULL, irc_cmd_recv_error },
{ "info", N_("get information describing the server"),
N_("[target]"),
@@ -58,6 +61,10 @@ t_irc_command irc_commands[] =
N_("nickname channel"),
N_("nickname: nick to invite\nchannel: channel to invite"),
2, 2, 1, NULL, irc_cmd_send_invite, NULL },
+ { "ison", N_("check if a nickname is currently on IRC"),
+ N_("nickname [nickname ...]"),
+ N_("nickname: nickname"),
+ 1, MAX_ARGS, 1, NULL, irc_cmd_send_ison, NULL },
{ "join", N_("join a channel"),
N_("channel[,channel] [key[,key]]"),
N_("channel: channel name to join\nkey: key to join the channel"),
@@ -180,9 +187,14 @@ t_irc_command irc_commands[] =
N_("server commnent"), N_("server: server name\ncomment: comment for quit"),
2, 2, 1, NULL, irc_cmd_send_squit, NULL },
{ "stats", N_("query statistics about server"),
- "[query [server]]",
- "query: c/h/i/k/l/m/o/y/u (see RFC1459)\nserver: server name",
+ N_("[query [server]]"),
+ N_("query: c/h/i/k/l/m/o/y/u (see RFC1459)\nserver: server name"),
0, 2, 1, NULL, irc_cmd_send_stats, NULL },
+ { "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\ntarget: server name\nchannel: channel name"),
+ 1, 3, 1, NULL, irc_cmd_send_summon, NULL },
{ "time", N_("query local time from server"),
N_("[target]"), N_("target: query time from specified server"),
0, 1, 1, NULL, irc_cmd_send_time, NULL },
@@ -193,12 +205,22 @@ t_irc_command irc_commands[] =
{ "trace", N_("find the route to specific server"),
N_("[target]"), N_("target: server"),
0, 1, 1, NULL, irc_cmd_send_trace, NULL },
+ { "userhost", N_("return a list of information about nicknames"),
+ N_("nickname [nickname ...]"), N_("nickname: nickname"),
+ 1, MAX_ARGS, 1, NULL, irc_cmd_send_userhost, NULL },
+ { "users", N_("list of users logged into the server"),
+ N_("[target]"), N_("target: server"),
+ 0, 1, 1, NULL, irc_cmd_send_users, NULL },
{ "version", N_("gives the version info of nick or server (current or specified)"),
N_("[server | nickname]"), N_("server: server name\nnickname: nickname"),
0, 1, 1, NULL, irc_cmd_send_version, NULL },
{ "voice", N_("gives voice to nickname(s)"),
N_("nickname [nickname]"), "",
1, 1, 1, irc_cmd_send_voice, NULL, NULL },
+ { "wallops", N_("send a message to all currently connected users who have "
+ "set the 'w' user mode for themselves"),
+ N_("text"), N_("text to send"),
+ 1, MAX_ARGS, 1, NULL, irc_cmd_send_wallops, NULL },
{ "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\n"),
@@ -241,6 +263,8 @@ t_irc_command irc_commands[] =
{ "268", N_("a server message"), "", "", 0, 0, 1, NULL, NULL, irc_cmd_recv_server_msg },
{ "269", N_("a server message"), "", "", 0, 0, 1, NULL, NULL, irc_cmd_recv_server_msg },
{ "301", N_("away message"), "", "", 0, 0, 1, NULL, NULL, irc_cmd_recv_301 },
+ { "302", N_("userhost"), "", "", 0, 0, 1, NULL, NULL, irc_cmd_recv_302 },
+ { "303", N_("ison"), "", "", 0, 0, 1, NULL, NULL, irc_cmd_recv_303 },
{ "305", N_("unaway"), "", "", 0, 0, 1, NULL, NULL, irc_cmd_recv_server_reply },
{ "306", N_("now away"), "", "", 0, 0, 1, NULL, NULL, irc_cmd_recv_server_reply },
{ "311", N_("whois (user)"), "", "", 0, 0, 1, NULL, NULL, irc_cmd_recv_311 },