1
0
mirror of https://github.com/osmarks/ngircd.git synced 2025-07-28 05:22:49 +00:00

- IRC_PING() ist, wenn nicht im "strict RFC"-Mode, toleranter und akzptiert

beliebig viele Parameter: z.B. BitchX sendet soetwas.
This commit is contained in:
Alexander Barton 2002-03-10 22:40:22 +00:00
parent dce77559fa
commit 5fa05dcea8
2 changed files with 8 additions and 16 deletions

View File

@ -67,7 +67,6 @@
F51F791401DFD0DE01D13771, F51F791401DFD0DE01D13771,
F56D8B9E01E0BFA00155ADA7, F56D8B9E01E0BFA00155ADA7,
F52162B301C7B904012300F4, F52162B301C7B904012300F4,
F52162C201C7B904012300F4,
F52162C301C7B904012300F4, F52162C301C7B904012300F4,
F52162C401C7B904012300F4, F52162C401C7B904012300F4,
F52162C501C7B904012300F4, F52162C501C7B904012300F4,
@ -114,7 +113,6 @@
08FB77A0FE84155DC02AAC07 = { 08FB77A0FE84155DC02AAC07 = {
buildActionMask = 2147483647; buildActionMask = 2147483647;
files = ( files = (
F52162CC01C7B904012300F4,
F52162CD01C7B904012300F4, F52162CD01C7B904012300F4,
F52162CE01C7B904012300F4, F52162CE01C7B904012300F4,
F52162CF01C7B904012300F4, F52162CF01C7B904012300F4,
@ -470,12 +468,6 @@
path = tool.h; path = tool.h;
refType = 4; refType = 4;
}; };
F52162C201C7B904012300F4 = {
isa = PBXFileReference;
name = acconfig.h;
path = ../acconfig.h;
refType = 2;
};
F52162C301C7B904012300F4 = { F52162C301C7B904012300F4 = {
isa = PBXExecutableFileReference; isa = PBXExecutableFileReference;
name = autogen.sh; name = autogen.sh;
@ -530,12 +522,6 @@
path = ../README; path = ../README;
refType = 2; refType = 2;
}; };
F52162CC01C7B904012300F4 = {
fileRef = F52162C201C7B904012300F4;
isa = PBXBuildFile;
settings = {
};
};
F52162CD01C7B904012300F4 = { F52162CD01C7B904012300F4 = {
fileRef = F52162BA01C7B904012300F4; fileRef = F52162BA01C7B904012300F4;
isa = PBXBuildFile; isa = PBXBuildFile;

View File

@ -9,11 +9,15 @@
* 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-login.c,v 1.3 2002/03/03 17:15:11 alex Exp $ * $Id: irc-login.c,v 1.4 2002/03/10 22:40:22 alex Exp $
* *
* irc-login.c: Anmeldung und Abmeldung im IRC * irc-login.c: Anmeldung und Abmeldung im IRC
* *
* $Log: irc-login.c,v $ * $Log: irc-login.c,v $
* Revision 1.4 2002/03/10 22:40:22 alex
* - IRC_PING() ist, wenn nicht im "strict RFC"-Mode, toleranter und akzptiert
* beliebig viele Parameter: z.B. BitchX sendet soetwas.
*
* Revision 1.3 2002/03/03 17:15:11 alex * Revision 1.3 2002/03/03 17:15:11 alex
* - Source in weitere Module fuer IRC-Befehle aufgesplitted. * - Source in weitere Module fuer IRC-Befehle aufgesplitted.
* *
@ -301,9 +305,11 @@ GLOBAL BOOLEAN IRC_PING( CLIENT *Client, REQUEST *Req )
/* Falsche Anzahl Parameter? */ /* Falsche Anzahl Parameter? */
if( Req->argc < 1 ) return IRC_WriteStrClient( Client, ERR_NOORIGIN_MSG, Client_ID( Client )); if( Req->argc < 1 ) return IRC_WriteStrClient( Client, ERR_NOORIGIN_MSG, Client_ID( Client ));
#ifdef STRICT_RFC
if( Req->argc > 2 ) return IRC_WriteStrClient( Client, ERR_NEEDMOREPARAMS_MSG, Client_ID( Client ), Req->command ); if( Req->argc > 2 ) return IRC_WriteStrClient( Client, ERR_NEEDMOREPARAMS_MSG, Client_ID( Client ), Req->command );
#endif
if( Req->argc == 2 ) if( Req->argc > 1 )
{ {
/* es wurde ein Ziel-Client angegeben */ /* es wurde ein Ziel-Client angegeben */
target = Client_GetFromID( Req->argv[1] ); target = Client_GetFromID( Req->argv[1] );