diff options
author | Wilmer van der Gaast <wilmer@gaast.net> | 2015-01-17 20:13:19 +0000 |
---|---|---|
committer | Wilmer van der Gaast <wilmer@gaast.net> | 2015-01-17 20:13:19 +0000 |
commit | eb4ad8d31f7ed4210f24beb8753ecce594b0beef (patch) | |
tree | f7f9cf04738522a79f874e0e8ce9b915014861fc /irc_commands.c | |
parent | 1065dd4f38c81c83934ba51526471072837700ae (diff) | |
parent | 664bac38fcdf6889d3ceb29b73a0c3a4e27820ce (diff) |
Merging random other fixes/cleanups.
Diffstat (limited to 'irc_commands.c')
-rw-r--r-- | irc_commands.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/irc_commands.c b/irc_commands.c index 743fb417..6be756ff 100644 --- a/irc_commands.c +++ b/irc_commands.c @@ -769,7 +769,9 @@ void irc_exec( irc_t *irc, char *cmd[] ) if( g_strcasecmp( irc_commands[i].command, cmd[0] ) == 0 ) { /* There should be no typo in the next line: */ - for( n_arg = 0; cmd[n_arg]; n_arg ++ ); n_arg --; + for( n_arg = 0; cmd[n_arg]; n_arg ++ ) + ; + n_arg--; if( irc_commands[i].flags & IRC_CMD_PRE_LOGIN && irc->status & USTATUS_LOGGED_IN ) { |