aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2009-06-24 22:48:44 +0100
committerWilmer van der Gaast <wilmer@gaast.net>2009-06-24 22:48:44 +0100
commit2ea8736c7f59db6c183752f1f2e47cd988c08b66 (patch)
tree493b0ef4e78e78ce21c3a716e8153209b772947d
parent8a08d92a092092b5d208616e03fb3fcee1fc3c86 (diff)
Fixed another crash bug (this one was triggered by just typing "chat set").
-rw-r--r--root_commands.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/root_commands.c b/root_commands.c
index b3a7109e..678ee143 100644
--- a/root_commands.c
+++ b/root_commands.c
@@ -1073,6 +1073,8 @@ static void cmd_chat( irc_t *irc, char **cmd )
}
else if( g_strcasecmp( cmd[1], "set" ) == 0 )
{
+ MIN_ARGS( 2 );
+
cmd_set_real( irc, cmd + 1, cmd_chat_set_findhead, NULL );
}
else if( g_strcasecmp( cmd[1], "del" ) == 0 )