Commit Diff


commit - cf2d47943713a3d88550561ce02472848584934a
commit + 12bf203167035a0fc6d77fc0e3c085100336f77f
blob - fca321dd3bb3ab1ae8c76072dfefe68c73b3e2c3
blob + 197f2eaa4413dc9cac222e503a3675c32dacae5f
--- src/ngircd/irc.c
+++ 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;
blob - 0864f266696a6a760dba1ede3ad57b1edde3941b
blob + 40385ba5e665c50da876014798a29760ca7057c6
--- src/ngircd/irc.h
+++ 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, REQU
 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 ));