repo: ngircd
action: commit
revision: 
path_from: 
revision_from: 1aeaf64c6662f3bc41cfd143fae58eee32f606cf:
path_to: 
revision_to: 
git.thebackupbox.net
ngircd
git clone git://git.thebackupbox.net/ngircd
commit 1aeaf64c6662f3bc41cfd143fae58eee32f606cf
Author: Alexander Barton 
Date:   Tue May 17 23:18:54 2005 +0000

    New function Client_RegisterWhowas().

diff --git a/src/ngircd/client.c b/src/ngircd/client.c
index 0c19655cb28c31253dfdb7e602daf12ababd0069..
index ..7cb81a7825dd5fd4909f047e86f6914b05ae1920 100644
--- a/src/ngircd/client.c
+++ b/src/ngircd/client.c
@@ -17,7 +17,7 @@

 #include "portab.h"

-static char UNUSED id[] = "$Id: client.c,v 1.80 2005/05/16 12:23:48 alex Exp $";
+static char UNUSED id[] = "$Id: client.c,v 1.81 2005/05/17 23:18:54 alex Exp $";

 #include "imp.h"
 #include 
@@ -63,7 +63,6 @@ LOCAL long MyCount PARAMS(( CLIENT_TYPE Type ));
 LOCAL CLIENT *New_Client_Struct PARAMS(( void ));
 LOCAL void Generate_MyToken PARAMS(( CLIENT *Client ));
 LOCAL void Adjust_Counters PARAMS(( CLIENT *Client ));
-LOCAL void Register_Whowas PARAMS(( CLIENT *Client ));

 #ifndef Client_DestroyNow
 GLOBAL void Client_DestroyNow PARAMS((CLIENT *Client ));
@@ -269,7 +268,7 @@ Client_Destroy( CLIENT *Client, char *LogMsg, char *FwdMsg, bool SendQuit )
 				Channel_Quit( c, FwdMsg ? FwdMsg : c->id );

 				/* Register client in My_Whowas structure */
-				Register_Whowas( c );
+				Client_RegisterWhowas( c );
 			}
 			else if( c->type == CLIENT_SERVER )
 			{
@@ -1126,8 +1125,8 @@ Adjust_Counters( CLIENT *Client )
 /**
  * Register client in My_Whowas structure for further recall by WHOWAS.
  */
-LOCAL void
-Register_Whowas( CLIENT *Client )
+GLOBAL void
+Client_RegisterWhowas( CLIENT *Client )
 {
 	int slot;

@@ -1153,7 +1152,7 @@ Register_Whowas( CLIENT *Client )
 		 sizeof( My_Whowas[slot].server ));

 	Last_Whowas = slot;
-} /* Register_Whowas */
+} /* Client_RegisterWhowas */


 /* -eof- */
diff --git a/src/ngircd/client.h b/src/ngircd/client.h
index 927011bb45cc165ee1d24e0ab165d35310c63eee..
index ..c409334a1535fe14460e4833319f90704feb2080 100644
--- a/src/ngircd/client.h
+++ b/src/ngircd/client.h
@@ -8,7 +8,7 @@
  * (at your option) any later version.
  * Please read the file COPYING, README and AUTHORS for more information.
  *
- * $Id: client.h,v 1.37 2005/05/16 12:24:31 alex Exp $
+ * $Id: client.h,v 1.38 2005/05/17 23:18:54 alex Exp $
  *
  * Client management (header)
  */
@@ -150,6 +150,8 @@ GLOBAL bool Client_IsValidNick PARAMS(( char *Nick ));
 GLOBAL WHOWAS *Client_GetWhowas PARAMS(( void ));
 GLOBAL int Client_GetLastWhowasIndex PARAMS(( void ));

+GLOBAL void Client_RegisterWhowas PARAMS(( CLIENT *Client ));
+

 #endif

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