| 47 |
|
static struct Command *command_create(const struct OperCommandHash *, char *param, char *irc_nick, struct ChannelConf *target); |
| 48 |
|
static void command_free(struct Command *); |
| 49 |
|
|
| 50 |
< |
static void cmd_check(char *, char *, struct ChannelConf *); |
| 51 |
< |
static void cmd_stat(char *, char *, struct ChannelConf *); |
| 52 |
< |
static void cmd_fdstat(char *, char *, struct ChannelConf *); |
| 50 |
> |
static void cmd_check(char *, struct ChannelConf *); |
| 51 |
> |
static void cmd_stat(char *, struct ChannelConf *); |
| 52 |
> |
static void cmd_fdstat(char *, struct ChannelConf *); |
| 53 |
|
|
| 54 |
|
static struct OperCommandHash COMMAND_TABLE[] = |
| 55 |
|
{ |
| 254 |
|
* |
| 255 |
|
*/ |
| 256 |
|
void |
| 257 |
< |
command_userhost(char *reply) |
| 257 |
> |
command_userhost(const char *reply) |
| 258 |
|
{ |
| 259 |
|
node_t *node, *next; |
| 260 |
|
char *tmp; |
| 284 |
|
if (strcmp(cs->irc_nick, reply) == 0) |
| 285 |
|
{ |
| 286 |
|
if (oper) |
| 287 |
< |
cs->tab->handler(cs->param, cs->irc_nick, cs->target); |
| 287 |
> |
cs->tab->handler(cs->param, cs->target); |
| 288 |
|
|
| 289 |
|
/* Cleanup the command */ |
| 290 |
|
command_free(cs); |
| 301 |
|
* |
| 302 |
|
* Parameters: |
| 303 |
|
* param: Parameters of the command |
| 304 |
– |
* source: irc_nick of user who requested the command |
| 304 |
|
* target: channel command was sent to |
| 305 |
|
* |
| 306 |
|
*/ |
| 307 |
|
static void |
| 308 |
< |
cmd_check(char *param, char *source, struct ChannelConf *target) |
| 308 |
> |
cmd_check(char *param, struct ChannelConf *target) |
| 309 |
|
{ |
| 310 |
|
scan_manual(param, target); |
| 311 |
|
} |
| 316 |
|
* |
| 317 |
|
* Parameters: |
| 318 |
|
* param: Parameters of the command |
| 320 |
– |
* source: irc_nick of user who requested the command |
| 319 |
|
* target: channel command was sent to |
| 320 |
|
*/ |
| 321 |
|
static void |
| 322 |
< |
cmd_stat(char *param, char *source, struct ChannelConf *target) |
| 322 |
> |
cmd_stat(char *param, struct ChannelConf *target) |
| 323 |
|
{ |
| 324 |
|
stats_output(target->name); |
| 325 |
|
} |
| 330 |
|
* |
| 331 |
|
* Parameters: |
| 332 |
|
* param: Parameters of the command |
| 335 |
– |
* source: irc_nick of user who requested the command |
| 333 |
|
* target: channel command was sent to |
| 334 |
|
*/ |
| 335 |
|
static void |
| 336 |
< |
cmd_fdstat(char *param, char *source, struct ChannelConf *target) |
| 336 |
> |
cmd_fdstat(char *param, struct ChannelConf *target) |
| 337 |
|
{ |
| 338 |
|
fdstats_output(target->name); |
| 339 |
|
} |