commit - 1656841f25447b9ea3237e0b72f1fbcb8b747c4d
commit + 7233b72145360ff390613c2922437f1469e4cb32
blob - dc06042cc1b5ff5fefe9c28e1f692fef44b4be74
blob + c30d4d555189b67a0bc895f8c69e9d929e0b8522
--- src/ngircd/channel.c
+++ src/ngircd/channel.c
* Naehere Informationen entnehmen Sie bitter der Datei COPYING. Eine Liste
* der an ngIRCd beteiligten Autoren finden Sie in der Datei AUTHORS.
*
- * $Id: channel.c,v 1.33 2002/10/09 16:53:02 alex Exp $
+ * $Id: channel.c,v 1.34 2002/11/22 17:57:15 alex Exp $
*
* channel.c: Management der Channels
*/
if( ! Channel_IsValidName( Conf_Channel[i].name ))
{
Log( LOG_ERR, "Can't create pre-defined channel: invalid name: \"%s\"!", Conf_Channel[i].name );
+ continue;
+ }
+
+ /* Gibt es den Channel bereits? */
+ chan = Channel_Search( Conf_Channel[i].name );
+ if( chan )
+ {
+ Log( LOG_INFO, "Can't create pre-defined channel \"%s\": name already in use.", Conf_Channel[i].name );
continue;
}