static struct Command *command_create(const struct OperCommandHash *, char *param, char *irc_nick, struct ChannelConf *target);
static void command_free(struct Command *);
-static void cmd_check(char *, char *, struct ChannelConf *);
-static void cmd_stat(char *, char *, struct ChannelConf *);
-static void cmd_fdstat(char *, char *, struct ChannelConf *);
+static void cmd_check(char *, struct ChannelConf *);
+static void cmd_stat(char *, struct ChannelConf *);
+static void cmd_fdstat(char *, struct ChannelConf *);
static struct OperCommandHash COMMAND_TABLE[] =
{
*
*/
void
-command_userhost(char *reply)
+command_userhost(const char *reply)
{
node_t *node, *next;
char *tmp;
if (strcmp(cs->irc_nick, reply) == 0)
{
if (oper)
- cs->tab->handler(cs->param, cs->irc_nick, cs->target);
+ cs->tab->handler(cs->param, cs->target);
/* Cleanup the command */
command_free(cs);
*
* Parameters:
* param: Parameters of the command
- * source: irc_nick of user who requested the command
* target: channel command was sent to
*
*/
static void
-cmd_check(char *param, char *source, struct ChannelConf *target)
+cmd_check(char *param, struct ChannelConf *target)
{
scan_manual(param, target);
}
*
* Parameters:
* param: Parameters of the command
- * source: irc_nick of user who requested the command
* target: channel command was sent to
*/
static void
-cmd_stat(char *param, char *source, struct ChannelConf *target)
+cmd_stat(char *param, struct ChannelConf *target)
{
stats_output(target->name);
}
*
* Parameters:
* param: Parameters of the command
- * source: irc_nick of user who requested the command
* target: channel command was sent to
*/
static void
-cmd_fdstat(char *param, char *source, struct ChannelConf *target)
+cmd_fdstat(char *param, struct ChannelConf *target)
{
fdstats_output(target->name);
}
struct OperCommandHash
{
const char *command;
- void (*handler)(char *, char *, struct ChannelConf *);
+ void (*handler)(char *, struct ChannelConf *);
};
struct Command
};
extern void command_init(void);
-extern void command_userhost(char *);
+extern void command_userhost(const char *);
extern void command_timer(void);
extern void command_parse(char *, char *, struct ChannelConf *, struct UserInfo *);
#endif