diff options
| author | Alexander Barton <alex@barton.de> | 2002-11-22 23:31:56 +0000 |
|---|---|---|
| committer | Alexander Barton <alex@barton.de> | 2002-11-22 23:31:56 +0000 |
| commit | 12bf203167035a0fc6d77fc0e3c085100336f77f (patch) | |
| tree | c3fd9de4b9f762b01f4be6b78436b36c7d3c3b34 | |
| parent | cf2d47943713a3d88550561ce02472848584934a (diff) | |
| download | ngircd-12bf203167035a0fc6d77fc0e3c085100336f77f.tar.gz ngircd-12bf203167035a0fc6d77fc0e3c085100336f77f.zip | |
- neue Funktion IRC_WHOWAS() begonnen.
| -rw-r--r-- | src/ngircd/irc.c | 19 | ||||
| -rw-r--r-- | src/ngircd/irc.h | 3 |
2 files changed, 20 insertions, 2 deletions
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 */ @@ -362,6 +362,23 @@ IRC_WHOIS( CLIENT *Client, REQUEST *Req ) 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 ) { BOOLEAN ok, only_ops; diff --git a/src/ngircd/irc.h b/src/ngircd/irc.h index 0864f266..40385ba5 100644 --- a/src/ngircd/irc.h +++ b/src/ngircd/irc.h @@ -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.h,v 1.32 2002/09/16 09:14:45 alex Exp $ + * $Id: irc.h,v 1.33 2002/11/22 23:31:56 alex Exp $ * * irc.h: IRC-Befehle (Header) */ @@ -31,6 +31,7 @@ GLOBAL BOOLEAN IRC_NOTICE PARAMS((CLIENT *Client, REQUEST *Req )); GLOBAL BOOLEAN IRC_NAMES PARAMS((CLIENT *Client, REQUEST *Req )); GLOBAL BOOLEAN IRC_ISON PARAMS((CLIENT *Client, REQUEST *Req )); GLOBAL BOOLEAN IRC_WHOIS PARAMS((CLIENT *Client, REQUEST *Req )); +GLOBAL BOOLEAN IRC_WHOWAS PARAMS((CLIENT *Client, REQUEST *Req )); GLOBAL BOOLEAN IRC_USERHOST PARAMS((CLIENT *Client, REQUEST *Req )); GLOBAL BOOLEAN IRC_WHO PARAMS((CLIENT *Client, REQUEST *Req )); |