ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/hopm/branches/1.0.x/src/opercmd.c
(Generate patch)

Comparing hopm/branches/1.0.x/src/opercmd.c (file contents):
Revision 5288 by michael, Sat Jan 3 20:07:51 2015 UTC vs.
Revision 5292 by michael, Sat Jan 3 20:58:17 2015 UTC

# Line 47 | Line 47 | static list_t *COMMANDS = NULL;  /* List
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   {
# Line 254 | Line 254 | command_free(struct Command *command)
254   *
255   */
256   void
257 < command_userhost(char *reply)
257 > command_userhost(const char *reply)
258   {
259    node_t *node, *next;
260    char *tmp;
# Line 284 | Line 284 | command_userhost(char *reply)
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);
# Line 301 | Line 301 | command_userhost(char *reply)
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   }
# Line 317 | Line 316 | cmd_check(char *param, char *source, str
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   }
# Line 332 | Line 330 | cmd_stat(char *param, char *source, stru
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   }

Diff Legend

Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)