Changes in irc_commands.c [f1d38f2:f73b969]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
irc_commands.c
rf1d38f2 rf73b969 579 579 void irc_exec( irc_t *irc, char *cmd[] ) 580 580 { 581 int i , n_arg;581 int i; 582 582 583 583 if( !cmd[0] ) … … 587 587 if( g_strcasecmp( irc_commands[i].command, cmd[0] ) == 0 ) 588 588 { 589 /* There should be no typo in the next line: */590 for( n_arg = 0; cmd[n_arg]; n_arg ++ ); n_arg --;591 592 589 if( irc_commands[i].flags & IRC_CMD_PRE_LOGIN && irc->status >= USTATUS_LOGGED_IN ) 593 590 { … … 602 599 irc_reply( irc, 481, ":Permission denied - You're not an IRC operator" ); 603 600 } 604 else if( n_arg < irc_commands[i].required_parameters)601 else if( !cmd[irc_commands[i].required_parameters] ) 605 602 { 606 603 irc_reply( irc, 461, "%s :Need more parameters", cmd[0] );
Note: See TracChangeset
for help on using the changeset viewer.