- IRC+-Protokoll ist nun abschaltbar.
This commit is contained in:
parent
14cbca87c8
commit
3dc1621200
|
@ -9,7 +9,7 @@
|
||||||
* Naehere Informationen entnehmen Sie bitter der Datei COPYING. Eine Liste
|
* Naehere Informationen entnehmen Sie bitter der Datei COPYING. Eine Liste
|
||||||
* der an ngIRCd beteiligten Autoren finden Sie in der Datei AUTHORS.
|
* der an ngIRCd beteiligten Autoren finden Sie in der Datei AUTHORS.
|
||||||
*
|
*
|
||||||
* $Id: irc-server.c,v 1.16 2002/09/03 23:55:44 alex Exp $
|
* $Id: irc-server.c,v 1.17 2002/09/07 17:57:31 alex Exp $
|
||||||
*
|
*
|
||||||
* irc-server.c: IRC-Befehle fuer Server-Links
|
* irc-server.c: IRC-Befehle fuer Server-Links
|
||||||
*/
|
*/
|
||||||
|
@ -162,12 +162,14 @@ IRC_SERVER( CLIENT *Client, REQUEST *Req )
|
||||||
chan = Channel_First( );
|
chan = Channel_First( );
|
||||||
while( chan )
|
while( chan )
|
||||||
{
|
{
|
||||||
|
#ifdef IRCPLUS
|
||||||
/* Wenn unterstuetzt, CHANINFO senden */
|
/* Wenn unterstuetzt, CHANINFO senden */
|
||||||
if( strchr( Client_Flags( Client ), 'C' ))
|
if( strchr( Client_Flags( Client ), 'C' ))
|
||||||
{
|
{
|
||||||
/* CHANINFO senden */
|
/* CHANINFO senden */
|
||||||
if( ! IRC_WriteStrClient( Client, "CHANINFO %s +%s :%s", Channel_Name( chan ), Channel_Modes( chan ), Channel_Topic( chan ))) return DISCONNECTED;
|
if( ! IRC_WriteStrClient( Client, "CHANINFO %s +%s :%s", Channel_Name( chan ), Channel_Modes( chan ), Channel_Topic( chan ))) return DISCONNECTED;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
/* alle Member suchen */
|
/* alle Member suchen */
|
||||||
cl2chan = Channel_FirstMember( chan );
|
cl2chan = Channel_FirstMember( chan );
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
* Naehere Informationen entnehmen Sie bitter der Datei COPYING. Eine Liste
|
* Naehere Informationen entnehmen Sie bitter der Datei COPYING. Eine Liste
|
||||||
* der an ngIRCd beteiligten Autoren finden Sie in der Datei AUTHORS.
|
* der an ngIRCd beteiligten Autoren finden Sie in der Datei AUTHORS.
|
||||||
*
|
*
|
||||||
* $Id: parse.c,v 1.38 2002/09/03 23:54:06 alex Exp $
|
* $Id: parse.c,v 1.39 2002/09/07 17:57:31 alex Exp $
|
||||||
*
|
*
|
||||||
* parse.c: Parsen der Client-Anfragen
|
* parse.c: Parsen der Client-Anfragen
|
||||||
*/
|
*/
|
||||||
|
@ -349,7 +349,9 @@ Handle_Request( CONN_ID Idx, REQUEST *Req )
|
||||||
else if( strcasecmp( Req->command, "KICK" ) == 0 ) return IRC_KICK( client, Req );
|
else if( strcasecmp( Req->command, "KICK" ) == 0 ) return IRC_KICK( client, Req );
|
||||||
else if( strcasecmp( Req->command, "BAN" ) == 0 ) return IRC_BAN( client, Req );
|
else if( strcasecmp( Req->command, "BAN" ) == 0 ) return IRC_BAN( client, Req );
|
||||||
else if( strcasecmp( Req->command, "CONNECT" ) == 0 ) return IRC_CONNECT( client, Req );
|
else if( strcasecmp( Req->command, "CONNECT" ) == 0 ) return IRC_CONNECT( client, Req );
|
||||||
|
#ifdef IRCPLUS
|
||||||
else if( strcasecmp( Req->command, "CHANINFO" ) == 0 ) return IRC_CHANINFO( client, Req );
|
else if( strcasecmp( Req->command, "CHANINFO" ) == 0 ) return IRC_CHANINFO( client, Req );
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Unbekannter Befehl */
|
/* Unbekannter Befehl */
|
||||||
if( Client_Type( client ) != CLIENT_SERVER ) IRC_WriteStrClient( client, ERR_UNKNOWNCOMMAND_MSG, Client_ID( client ), Req->command );
|
if( Client_Type( client ) != CLIENT_SERVER ) IRC_WriteStrClient( client, ERR_UNKNOWNCOMMAND_MSG, Client_ID( client ), Req->command );
|
||||||
|
|
Loading…
Reference in New Issue