From: michael Date: Sun, 11 Jan 2015 17:16:07 +0000 (+0000) Subject: - command_parse(): removed 'msg' parameter. We actually only need this for X-Git-Tag: 1.0.2~10 X-Git-Url: http://git.serene-ircd.net/?a=commitdiff_plain;h=da193ccf6ad58a86757ffe1674d8824bc8bb92a7;p=hopm.git - command_parse(): removed 'msg' parameter. We actually only need this for m_notice() as proof for reporting insecure proxies to a dnsbl provider. git-svn-id: svn://svn.ircd-hybrid.org/svnroot/hopm/branches/1.0.x@5355 82007160-df01-0410-b94d-b575c5fd34c7 --- diff --git a/src/irc.c b/src/irc.c index 0ba3247..05ec763 100644 --- a/src/irc.c +++ b/src/irc.c @@ -813,7 +813,7 @@ m_privmsg(char *parv[], unsigned int parc, char *msg, const struct UserInfo *sou strncasecmp(parv[3], "!all", 4) == 0) { /* XXX command_parse will alter parv[3]. */ - command_parse(parv[3], msg, channel, source_p); + command_parse(parv[3], channel, source_p); } } diff --git a/src/opercmd.c b/src/opercmd.c index 38c5919..2a11db9 100644 --- a/src/opercmd.c +++ b/src/opercmd.c @@ -124,13 +124,12 @@ command_timer(void) * * Parameters: * command: Command sent (including parameters) - * msg: Original PRIVMSG containing the command * target: Channel command was sent to (we only got this far if there was only one recipient) * source_p: Operator (hopefully) that sent the command. * */ void -command_parse(char *command, char *msg, const struct ChannelConf *target, +command_parse(char *command, const struct ChannelConf *target, const struct UserInfo *source_p) { char *param; /* Parsed parameters */ diff --git a/src/opercmd.h b/src/opercmd.h index e73b019..5c20975 100644 --- a/src/opercmd.h +++ b/src/opercmd.h @@ -59,5 +59,5 @@ struct Command extern void command_init(void); extern void command_userhost(const char *); extern void command_timer(void); -extern void command_parse(char *, char *, const struct ChannelConf *, const struct UserInfo *); +extern void command_parse(char *, const struct ChannelConf *, const struct UserInfo *); #endif