diff options
Diffstat (limited to 'irc_channel.c')
-rw-r--r-- | irc_channel.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/irc_channel.c b/irc_channel.c index d15b73eb..c2e2c685 100644 --- a/irc_channel.c +++ b/irc_channel.c @@ -126,3 +126,8 @@ int irc_channel_set_topic( irc_channel_t *ic, const char *topic, const irc_user_ return 1; } + +gboolean irc_channel_name_ok( const char *name ) +{ + return strchr( CTYPES, name[0] ) != NULL && nick_ok( name + 1 ); +} |