diff options
Diffstat (limited to 'irc_channel.c')
| -rw-r--r-- | irc_channel.c | 3 | 
1 files changed, 3 insertions, 0 deletions
| diff --git a/irc_channel.c b/irc_channel.c index fc89ddd3..a241847d 100644 --- a/irc_channel.c +++ b/irc_channel.c @@ -310,6 +310,9 @@ gboolean irc_channel_name_ok( const char *name_ )  	const unsigned char *name = (unsigned char*) name_;  	int i; +	if( name_[0] == '\0' ) +		return FALSE; +	  	/* Check if the first character is in CTYPES (#&) */  	if( strchr( CTYPES, name_[0] ) == NULL )  		return FALSE; | 
