repo: ngircd
action: commit
revision: 
path_from: 
revision_from: 12bf203167035a0fc6d77fc0e3c085100336f77f:
path_to: 
revision_to: 
git.thebackupbox.net
ngircd
git clone git://git.thebackupbox.net/ngircd
commit 12bf203167035a0fc6d77fc0e3c085100336f77f
Author: Alexander Barton 
Date:   Fri Nov 22 23:31:56 2002 +0000

    - neue Funktion IRC_WHOWAS() begonnen.

diff --git a/src/ngircd/irc.c b/src/ngircd/irc.c
index fca321dd3bb3ab1ae8c76072dfefe68c73b3e2c3..
index ..197f2eaa4413dc9cac222e503a3675c32dacae5f 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 )
 {
diff --git a/src/ngircd/irc.h b/src/ngircd/irc.h
index 0864f266696a6a760dba1ede3ad57b1edde3941b..
index ..40385ba5e665c50da876014798a29760ca7057c6 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 ));

-----END OF PAGE-----