145 |
N_("data"), |
N_("data"), |
146 |
N_("data: raw data to send"), |
N_("data: raw data to send"), |
147 |
1, MAX_ARGS, 1, NULL, irc_cmd_send_quote, NULL }, |
1, MAX_ARGS, 1, NULL, irc_cmd_send_quote, NULL }, |
148 |
|
{ "rehash", N_("tell the server to reload its config file"), |
149 |
|
"", "", |
150 |
|
0, 0, 1, NULL, irc_cmd_send_rehash, NULL }, |
151 |
|
{ "restart", N_("tell the server to restart itself"), |
152 |
|
"", "", |
153 |
|
0, 0, 1, NULL, irc_cmd_send_restart, NULL }, |
154 |
{ "topic", N_("get/set channel topic"), |
{ "topic", N_("get/set channel topic"), |
155 |
N_("[channel] [topic]"), N_("channel: channel name\ntopic: new topic for channel " |
N_("[channel] [topic]"), N_("channel: channel name\ntopic: new topic for channel " |
156 |
"(if topic is \"-delete\" then topic is deleted)"), |
"(if topic is \"-delete\" then topic is deleted)"), |
967 |
return 0; |
return 0; |
968 |
} |
} |
969 |
|
|
970 |
|
/* |
971 |
|
* irc_cmd_send_rehash: tell the server to reload its config file |
972 |
|
*/ |
973 |
|
|
974 |
|
int |
975 |
|
irc_cmd_send_rehash (t_irc_server *server, char *arguments) |
976 |
|
{ |
977 |
|
/* make gcc happy */ |
978 |
|
(void) arguments; |
979 |
|
|
980 |
|
server_sendf (server, "REHASH\r\n"); |
981 |
|
return 0; |
982 |
|
} |
983 |
|
|
984 |
|
/* |
985 |
|
* irc_cmd_send_restart: tell the server to restart itself |
986 |
|
*/ |
987 |
|
|
988 |
|
int |
989 |
|
irc_cmd_send_restart (t_irc_server *server, char *arguments) |
990 |
|
{ |
991 |
|
/* make gcc happy */ |
992 |
|
(void) arguments; |
993 |
|
|
994 |
|
server_sendf (server, "RESTART\r\n"); |
995 |
|
return 0; |
996 |
|
} |
997 |
|
|
998 |
/* |
/* |
999 |
* irc_cmd_send_topic: get/set topic for a channel |
* irc_cmd_send_topic: get/set topic for a channel |
1000 |
*/ |
*/ |