/*
* ngIRCd -- The Next Generation IRC Daemon
- * Copyright (c)2001,2002 by Alexander Barton (alex@barton.de)
+ * Copyright (c)2001-2005 by Alexander Barton (alex@barton.de)
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
#include "portab.h"
-static char UNUSED id[] = "$Id: channel.c,v 1.46 2005/03/19 18:43:48 fw Exp $";
+static char UNUSED id[] = "$Id: channel.c,v 1.49 2005/06/17 19:16:53 fw Exp $";
#include "imp.h"
#include <assert.h>
#include <string.h>
#include <strings.h>
+#include "defines.h"
#include "conn-func.h"
#include "client.h"
assert( Client != NULL );
assert( Reason != NULL );
+ IRC_WriteStrRelatedPrefix( Client, Client, false, "QUIT :%s", Reason );
+
c = My_Channels;
while( c )
{
if(( Name[0] != '#' ) || ( strlen( Name ) >= CHANNEL_NAME_LEN )) return false;
ptr = Name;
- strcpy( badchars, " ,:\007" );
+ badchars[0] = '\0';
while( *ptr )
{
if( strchr( badchars, *ptr )) return false;
/* QUIT: andere Server wurden bereits informiert, vgl. Client_Destroy();
* hier also "nur" noch alle User in betroffenen Channeln infomieren */
assert( InformServer == false );
- IRC_WriteStrChannelPrefix( Origin, c, Origin, false, "QUIT :%s", Reason );
Log( LOG_DEBUG, "User \"%s\" left channel \"%s\" (%s).", Client_Mask( Client ), c->name, Reason );
break;
case REMOVE_KICK: