diff options
author | Wilmer van der Gaast <wilmer@gaast.net> | 2006-06-26 17:06:08 +0200 |
---|---|---|
committer | Wilmer van der Gaast <wilmer@gaast.net> | 2006-06-26 17:06:08 +0200 |
commit | 471573f916c0cab785707f8313f762ab6e792208 (patch) | |
tree | bd4620c9813f22478c41792a2db7e0f9cd1ba6c6 /irc_commands.c | |
parent | c9f0c79af4d1d02e3e37c3d98c0ed33355bce113 (diff) | |
parent | 2f1322291d06a3a401f730802d501ea3cae6f4e3 (diff) |
Merging from devel (IRC protocol compliance stuff).
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] ); } |