diff options
| author | Wilmer van der Gaast <wilmer@gaast.net> | 2010-06-27 17:04:28 +0100 | 
|---|---|---|
| committer | Wilmer van der Gaast <wilmer@gaast.net> | 2010-06-27 17:04:28 +0100 | 
| commit | 134a02cd563c395d0026d9d1b07eb136394798ca (patch) | |
| tree | 8e57549feb99debfea6d53a3a47c7a5a60162fe1 /irc_channel.c | |
| parent | 547ea687b733113e06d7b941096b60632ac24de9 (diff) | |
irc_channel_name_strip() instead of nick_strip().
Diffstat (limited to 'irc_channel.c')
| -rw-r--r-- | irc_channel.c | 11 | 
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]; | 
