218 |
} |
} |
219 |
|
|
220 |
/* |
/* |
221 |
|
* irc_cmd_send_die: shotdown the server |
222 |
|
*/ |
223 |
|
|
224 |
|
int |
225 |
|
irc_cmd_send_die (t_irc_server *server, char *arguments) |
226 |
|
{ |
227 |
|
/* make gcc happy */ |
228 |
|
(void) arguments; |
229 |
|
|
230 |
|
server_sendf (server, "DIE\r\n"); |
231 |
|
return 0; |
232 |
|
} |
233 |
|
|
234 |
|
/* |
235 |
* irc_cmd_send_info: get information describing the server |
* irc_cmd_send_info: get information describing the server |
236 |
*/ |
*/ |
237 |
|
|
257 |
} |
} |
258 |
|
|
259 |
/* |
/* |
260 |
|
* irc_cmd_send_ison: check if a nickname is currently on IRC |
261 |
|
*/ |
262 |
|
|
263 |
|
int |
264 |
|
irc_cmd_send_ison (t_irc_server *server, char *arguments) |
265 |
|
{ |
266 |
|
server_sendf (server, "ISON %s\r\n", arguments); |
267 |
|
return 0; |
268 |
|
} |
269 |
|
|
270 |
|
/* |
271 |
* irc_cmd_send_join: join a new channel |
* irc_cmd_send_join: join a new channel |
272 |
*/ |
*/ |
273 |
|
|
823 |
} |
} |
824 |
|
|
825 |
/* |
/* |
826 |
|
* irc_cmd_send_summon: give users who are on a host running an IRC server |
827 |
|
* a message asking them to please join IRC |
828 |
|
*/ |
829 |
|
|
830 |
|
int |
831 |
|
irc_cmd_send_summon (t_irc_server *server, char *arguments) |
832 |
|
{ |
833 |
|
server_sendf (server, "SUMMON %s\r\n", arguments); |
834 |
|
return 0; |
835 |
|
} |
836 |
|
|
837 |
|
/* |
838 |
* irc_cmd_send_time: query local time from server |
* irc_cmd_send_time: query local time from server |
839 |
*/ |
*/ |
840 |
|
|
919 |
} |
} |
920 |
|
|
921 |
/* |
/* |
922 |
|
* irc_cmd_send_userhost: return a list of information about nicknames |
923 |
|
*/ |
924 |
|
|
925 |
|
int |
926 |
|
irc_cmd_send_userhost (t_irc_server *server, char *arguments) |
927 |
|
{ |
928 |
|
server_sendf (server, "USERHOST %s\r\n", arguments); |
929 |
|
return 0; |
930 |
|
} |
931 |
|
|
932 |
|
/* |
933 |
|
* irc_cmd_send_users: list of users logged into the server |
934 |
|
*/ |
935 |
|
|
936 |
|
int |
937 |
|
irc_cmd_send_users (t_irc_server *server, char *arguments) |
938 |
|
{ |
939 |
|
if (arguments) |
940 |
|
server_sendf (server, "USERS %s\r\n", arguments); |
941 |
|
else |
942 |
|
server_sendf (server, "USERS\r\n"); |
943 |
|
return 0; |
944 |
|
} |
945 |
|
|
946 |
|
/* |
947 |
* irc_cmd_send_version: gives the version info of nick or server (current or specified) |
* irc_cmd_send_version: gives the version info of nick or server (current or specified) |
948 |
*/ |
*/ |
949 |
|
|
997 |
return 0; |
return 0; |
998 |
} |
} |
999 |
|
|
1000 |
|
/* |
1001 |
|
* irc_cmd_send_wallops: send a message to all currently connected users who |
1002 |
|
* have set the 'w' user mode for themselves |
1003 |
|
*/ |
1004 |
|
|
1005 |
|
int |
1006 |
|
irc_cmd_send_wallops (t_irc_server *server, char *arguments) |
1007 |
|
{ |
1008 |
|
server_sendf (server, "WALLOPS %s\r\n", arguments); |
1009 |
|
return 0; |
1010 |
|
} |
1011 |
|
|
1012 |
/* |
/* |
1013 |
* irc_cmd_send_who: generate a query which returns a list of information |
* irc_cmd_send_who: generate a query which returns a list of information |
1014 |
*/ |
*/ |