X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=ngircd-alex.git;a=blobdiff_plain;f=src%2Fngircd%2Firc.c;h=197f2eaa4413dc9cac222e503a3675c32dacae5f;hp=fca321dd3bb3ab1ae8c76072dfefe68c73b3e2c3;hb=12bf203167035a0fc6d77fc0e3c085100336f77f;hpb=c7b55aa6f45b75b52fb67419b7ca5af3940016a4 diff --git a/src/ngircd/irc.c b/src/ngircd/irc.c index fca321dd..197f2eaa 100644 --- a/src/ngircd/irc.c +++ b/src/ngircd/irc.c @@ -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.c,v 1.99 2002/10/09 16:53:02 alex Exp $ + * $Id: irc.c,v 1.100 2002/11/22 23:31:56 alex Exp $ * * irc.c: IRC-Befehle */ @@ -361,6 +361,23 @@ IRC_WHOIS( CLIENT *Client, REQUEST *Req ) } /* IRC_WHOIS */ +GLOBAL BOOLEAN +IRC_WHOWAS( CLIENT *Client, REQUEST *Req ) +{ + assert( Client != NULL ); + assert( Req != NULL ); + + 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 < 1 ) || ( Req->argc > 3 )) return IRC_WriteStrClient( Client, ERR_NEEDMOREPARAMS_MSG, Client_ID( Client ), Req->command ); + + /* ... */ + + return CONNECTED; +} /* IRC_WHOWAS */ + + GLOBAL BOOLEAN IRC_WHO( CLIENT *Client, REQUEST *Req ) {