This commit is contained in:
opal 2016-02-27 06:57:51 +00:00
commit 484fa1d3be
4 changed files with 39 additions and 1 deletions

View file

@ -28,7 +28,6 @@
service instead; on IRCnet, you may use the ALIS service: service instead; on IRCnet, you may use the ALIS service:
/QUOTE SQUERY ALIS :HELP /QUOTE SQUERY ALIS :HELP
/MSG ALIS HELP
%9See also:%9 QUOTE, STATS, WHOIS %9See also:%9 QUOTE, STATS, WHOIS

21
docs/help/in/servlist.in Normal file
View file

@ -0,0 +1,21 @@
@SYNTAX:servlist@
Works only on IRCnet.
SERVLIST gives the list of services currently present on the
IRC network. It can take two arguments.
<mask> limits the output to the services which names matches
the mask.
<type> limits the output to the services of the specified type.
The fields returned are:
Service name.
Server who introduced the service.
Distribution mask.
Service type.
Hop count to the service.
A comment.
See also: SQUERY

12
docs/help/in/squery.in Normal file
View file

@ -0,0 +1,12 @@
@SYNTAX:squery@
<service> - Service name
<commands> - Commands to pass to the service.
Works only on IRCnet.
/SQUERY sends a query to the specified service.
See also: SERVLIST, NOTE, LIST

View file

@ -1018,11 +1018,15 @@ void irc_commands_init(void)
command_bind_irc("trace", NULL, (SIGNAL_FUNC) command_self); command_bind_irc("trace", NULL, (SIGNAL_FUNC) command_self);
/* SYNTAX: VERSION [<server>|<nick>] */ /* SYNTAX: VERSION [<server>|<nick>] */
command_bind_irc("version", NULL, (SIGNAL_FUNC) command_self); command_bind_irc("version", NULL, (SIGNAL_FUNC) command_self);
/* SYNTAX: SERVLIST [<server mask>] */
command_bind_irc("servlist", NULL, (SIGNAL_FUNC) command_self);
/* SYNTAX: SILENCE [[+|-]<nick!user@host>] /* SYNTAX: SILENCE [[+|-]<nick!user@host>]
SILENCE [<nick>] */ SILENCE [<nick>] */
command_bind_irc("silence", NULL, (SIGNAL_FUNC) command_self); command_bind_irc("silence", NULL, (SIGNAL_FUNC) command_self);
command_bind_irc("unsilence", NULL, (SIGNAL_FUNC) cmd_unsilence); command_bind_irc("unsilence", NULL, (SIGNAL_FUNC) cmd_unsilence);
command_bind_irc("sconnect", NULL, (SIGNAL_FUNC) cmd_sconnect); command_bind_irc("sconnect", NULL, (SIGNAL_FUNC) cmd_sconnect);
/* SYNTAX: SQUERY <service> [<commands>] */
command_bind_irc("squery", NULL, (SIGNAL_FUNC) command_2self);
/* SYNTAX: DIE */ /* SYNTAX: DIE */
command_bind_irc("die", NULL, (SIGNAL_FUNC) command_self); command_bind_irc("die", NULL, (SIGNAL_FUNC) command_self);
/* SYNTAX: HASH */ /* SYNTAX: HASH */
@ -1091,9 +1095,11 @@ void irc_commands_deinit(void)
command_unbind("time", (SIGNAL_FUNC) command_self); command_unbind("time", (SIGNAL_FUNC) command_self);
command_unbind("trace", (SIGNAL_FUNC) command_self); command_unbind("trace", (SIGNAL_FUNC) command_self);
command_unbind("version", (SIGNAL_FUNC) command_self); command_unbind("version", (SIGNAL_FUNC) command_self);
command_unbind("servlist", (SIGNAL_FUNC) command_self);
command_unbind("silence", (SIGNAL_FUNC) command_self); command_unbind("silence", (SIGNAL_FUNC) command_self);
command_unbind("unsilence", (SIGNAL_FUNC) cmd_unsilence); command_unbind("unsilence", (SIGNAL_FUNC) cmd_unsilence);
command_unbind("sconnect", (SIGNAL_FUNC) cmd_sconnect); command_unbind("sconnect", (SIGNAL_FUNC) cmd_sconnect);
command_unbind("squery", (SIGNAL_FUNC) command_2self);
command_unbind("die", (SIGNAL_FUNC) command_self); command_unbind("die", (SIGNAL_FUNC) command_self);
command_unbind("hash", (SIGNAL_FUNC) command_self); command_unbind("hash", (SIGNAL_FUNC) command_self);
command_unbind("oper", (SIGNAL_FUNC) cmd_oper); command_unbind("oper", (SIGNAL_FUNC) cmd_oper);