aboutsummaryrefslogtreecommitdiffstats
path: root/root_commands.c
diff options
context:
space:
mode:
authorulim <a.sporto+bee@gmail.com>2008-06-02 14:58:57 +0200
committerulim <a.sporto+bee@gmail.com>2008-06-02 14:58:57 +0200
commitc821e8ad0d1cf9ab71e6e34c685d0adea2dde923 (patch)
tree0273986e236651d17157ccd3907f64242fd13da9 /root_commands.c
parentcce0450184b4358ef06d91cca985fa3ca389fcd6 (diff)
parentde8e584d7f4fea214934af094a4df2672d7e0be8 (diff)
merged in upstream r384. No conflicts.
Diffstat (limited to 'root_commands.c')
-rw-r--r--root_commands.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/root_commands.c b/root_commands.c
index b3a77a10..93bd86d1 100644
--- a/root_commands.c
+++ b/root_commands.c
@@ -422,6 +422,12 @@ static void cmd_account( irc_t *irc, char **cmd )
else
acc_handle = g_strdup( cmd[2] );
+ if( !acc_handle )
+ {
+ irc_usermsg( irc, "Not enough parameters given (need %d)", 3 );
+ return;
+ }
+
if( ( tmp = strchr( acc_handle, '/' ) ) )
{
*tmp = 0;