diff options
author | Wilmer van der Gaast <wilmer@gaast.net> | 2006-06-25 21:55:18 +0200 |
---|---|---|
committer | Wilmer van der Gaast <wilmer@gaast.net> | 2006-06-25 21:55:18 +0200 |
commit | 2f1322291d06a3a401f730802d501ea3cae6f4e3 (patch) | |
tree | 578c50ad0cee72ba836b9335dae50d6300893ed7 /irc_commands.c | |
parent | 9b63df67847e72abb00246fdfc82830137153c3c (diff) |
IRC protocol compliance fixes (closes: #158, #159, #160).
Diffstat (limited to 'irc_commands.c')
-rw-r--r-- | irc_commands.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/irc_commands.c b/irc_commands.c index 3bb24fdb..3a7ace1c 100644 --- a/irc_commands.c +++ b/irc_commands.c @@ -118,6 +118,8 @@ static void irc_cmd_mode( irc_t *irc, char **cmd ) { if( cmd[2] ) irc_umode_set( irc, cmd[2], 0 ); + else + irc_reply( irc, 221, "+%s", irc->umode ); } else irc_reply( irc, 502, ":Don't touch their modes" ); @@ -636,6 +638,9 @@ void irc_exec( irc_t *irc, char *cmd[] ) irc_commands[i].execute( irc, cmd ); } - break; + return; } + + if( irc->status >= USTATUS_LOGGED_IN ) + irc_reply( irc, 421, "%s :Unknown command", cmd[0] ); } |