diff options
Diffstat (limited to 'root_commands.c')
| -rw-r--r-- | root_commands.c | 6 | 
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; | 
