Changeset 9438323 for irc_channel.c


Ignore:
Timestamp:
2010-05-04T23:38:18Z (9 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
aea8b68
Parents:
eb50495
Message:

Use irc_channel_name_ok() and check if a channel with that name already
exists before creating it.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • irc_channel.c

    reb50495 r9438323  
    3333        irc_channel_t *ic;
    3434       
    35         if( strchr( CTYPES, name[0] ) == NULL || !nick_ok( name + 1 ) )
     35        if( !irc_channel_name_ok( name ) || irc_channel_by_name( irc, name ) )
    3636                return NULL;
    3737       
Note: See TracChangeset for help on using the changeset viewer.