diff options
author | Wilmer van der Gaast <wilmer@gaast.net> | 2010-03-27 10:31:03 -0400 |
---|---|---|
committer | Wilmer van der Gaast <wilmer@gaast.net> | 2010-03-27 10:31:03 -0400 |
commit | b91936398b8ada486e246f769f1f8b8836fa3f43 (patch) | |
tree | b6e0067faa86490295f74083d15bc886ad56d83d /irc_channel.c | |
parent | 9b69eb789bdcb3667c4cc4ac74f3404ae3f60869 (diff) |
Mode stuff. Also disallow unsetting +R umode which was possible so far
(and shouldn't be).
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 ); +} |