1
0
mirror of https://github.com/osmarks/ngircd.git synced 2025-10-13 13:47:39 +00:00

- Parser auf Befehlstabelle umgestellt.

This commit is contained in:
Alexander Barton
2002-11-30 15:04:57 +00:00
parent e93f545c74
commit 1e59617d2c
9 changed files with 101 additions and 131 deletions

View File

@@ -9,7 +9,7 @@
* Naehere Informationen entnehmen Sie bitter der Datei COPYING. Eine Liste
* der an ngIRCd beteiligten Autoren finden Sie in der Datei AUTHORS.
*
* $Id: irc-op.c,v 1.9 2002/09/08 17:06:54 alex Exp $
* $Id: irc-op.c,v 1.10 2002/11/30 15:04:57 alex Exp $
*
* irc-op.c: Befehle zur Channel-Verwaltung
*/
@@ -44,9 +44,6 @@ IRC_KICK( CLIENT *Client, REQUEST *Req )
assert( Client != NULL );
assert( Req != NULL );
/* Valider Client? */
if(( Client_Type( Client ) != CLIENT_USER ) && ( Client_Type( Client ) != CLIENT_SERVER )) return IRC_WriteStrClient( Client, ERR_NOTREGISTERED_MSG, Client_ID( Client ));
/* Falsche Anzahl Parameter? */
if(( Req->argc < 2) || ( Req->argc > 3 )) return IRC_WriteStrClient( Client, ERR_NEEDMOREPARAMS_MSG, Client_ID( Client ), Req->command );
@@ -73,9 +70,6 @@ IRC_INVITE( CLIENT *Client, REQUEST *Req )
assert( Client != NULL );
assert( Req != NULL );
/* Valider Client? */
if(( Client_Type( Client ) != CLIENT_USER ) && ( Client_Type( Client ) != CLIENT_SERVER )) return IRC_WriteStrClient( Client, ERR_NOTREGISTERED_MSG, Client_ID( Client ));
/* Falsche Anzahl Parameter? */
if( Req->argc != 2 ) return IRC_WriteStrClient( Client, ERR_NEEDMOREPARAMS_MSG, Client_ID( Client ), Req->command );