diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2003-10-09 22:19:56 +0000 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2003-10-09 22:19:56 +0000 |
commit | d3fc2646a770597f058e61f6256b84239277096e (patch) | |
tree | 9fdddca88a6fe4ce5cf9249fc084ce656934fc6b /src/irc/irc-send.c | |
parent | 2b305f378f9401f6ae4a05673812a8a8eb0f65ac (diff) | |
download | weechat-d3fc2646a770597f058e61f6256b84239277096e.zip |
Added commands: info, servlist, squery, who and whowas
Diffstat (limited to 'src/irc/irc-send.c')
-rw-r--r-- | src/irc/irc-send.c | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/src/irc/irc-send.c b/src/irc/irc-send.c index b8d25399f..d14dfa68b 100644 --- a/src/irc/irc-send.c +++ b/src/irc/irc-send.c @@ -218,6 +218,20 @@ irc_cmd_send_devoice (t_irc_server *server, int argc, char **argv) } /* + * irc_cmd_send_info: get information describing the server + */ + +int +irc_cmd_send_info (t_irc_server *server, char *arguments) +{ + if (arguments) + server_sendf (server, "INFO %s\r\n", arguments); + else + server_sendf (server, "INFO\r\n"); + return 0; +} + +/* * irc_cmd_send_invite: invite a nick on a channel */ @@ -734,6 +748,31 @@ irc_cmd_send_service (t_irc_server *server, char *arguments) } /* + * irc_cmd_send_servlist: list services currently connected to the network + */ + +int +irc_cmd_send_servlist (t_irc_server *server, char *arguments) +{ + if (arguments) + server_sendf (server, "SERVLIST %s\r\n", arguments); + else + server_sendf (server, "SERVLIST\r\n"); + return 0; +} + +/* + * irc_cmd_send_squery: deliver a message to a service + */ + +int +irc_cmd_send_squery (t_irc_server *server, char *arguments) +{ + server_sendf (server, "SQUERY %s\r\n", arguments); + return 0; +} + +/* * irc_cmd_send_squit: disconnect server links */ @@ -897,6 +936,20 @@ irc_cmd_send_voice (t_irc_server *server, int argc, char **argv) } /* + * irc_cmd_send_who: generate a query which returns a list of information + */ + +int +irc_cmd_send_who (t_irc_server *server, char *arguments) +{ + if (arguments) + server_sendf (server, "WHO %s\r\n", arguments); + else + server_sendf (server, "WHO\r\n"); + return 0; +} + +/* * irc_cmd_send_whois: query information about user(s) */ @@ -906,3 +959,14 @@ irc_cmd_send_whois (t_irc_server *server, char *arguments) server_sendf (server, "WHOIS %s\r\n", arguments); return 0; } + +/* + * irc_cmd_send_whowas: ask for information about a nickname which no longer exists + */ + +int +irc_cmd_send_whowas (t_irc_server *server, char *arguments) +{ + server_sendf (server, "WHOWAS %s\r\n", arguments); + return 0; +} |