mirror of
https://github.com/osmarks/ngircd.git
synced 2025-02-02 02:29:08 +00:00
put badchars back in
This commit is contained in:
parent
9dc5e50226
commit
d81dab99fa
@ -17,7 +17,7 @@
|
|||||||
|
|
||||||
#include "portab.h"
|
#include "portab.h"
|
||||||
|
|
||||||
static char UNUSED id[] = "$Id: channel.c,v 1.49 2005/06/17 19:16:53 fw Exp $";
|
static char UNUSED id[] = "$Id: channel.c,v 1.50 2005/06/18 08:57:37 fw Exp $";
|
||||||
|
|
||||||
#include "imp.h"
|
#include "imp.h"
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
@ -468,7 +468,7 @@ Channel_IsValidName( char *Name )
|
|||||||
if(( Name[0] != '#' ) || ( strlen( Name ) >= CHANNEL_NAME_LEN )) return false;
|
if(( Name[0] != '#' ) || ( strlen( Name ) >= CHANNEL_NAME_LEN )) return false;
|
||||||
|
|
||||||
ptr = Name;
|
ptr = Name;
|
||||||
badchars[0] = '\0';
|
strcpy( badchars, " ,:\007" );
|
||||||
while( *ptr )
|
while( *ptr )
|
||||||
{
|
{
|
||||||
if( strchr( badchars, *ptr )) return false;
|
if( strchr( badchars, *ptr )) return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user