aboutsummaryrefslogtreecommitdiffstats
path: root/irc_channel.c
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2010-06-27 17:04:28 +0100
committerWilmer van der Gaast <wilmer@gaast.net>2010-06-27 17:04:28 +0100
commit134a02cd563c395d0026d9d1b07eb136394798ca (patch)
tree8e57549feb99debfea6d53a3a47c7a5a60162fe1 /irc_channel.c
parent547ea687b733113e06d7b941096b60632ac24de9 (diff)
irc_channel_name_strip() instead of nick_strip().
Diffstat (limited to 'irc_channel.c')
-rw-r--r--irc_channel.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/irc_channel.c b/irc_channel.c
index da6abbe4..f0e564bc 100644
--- a/irc_channel.c
+++ b/irc_channel.c
@@ -286,6 +286,17 @@ gboolean irc_channel_name_ok( const char *name_ )
return TRUE;
}
+void irc_channel_name_strip( char *name )
+{
+ int i, j;
+
+ for( i = j = 0; name[i]; i ++ )
+ if( name[i] > ' ' && name[i] != ',' )
+ name[j++] = name[i];
+
+ name[j] = '\0';
+}
+
int irc_channel_name_cmp( const char *a_, const char *b_ )
{
static unsigned char case_map[256];