2 * ngIRCd -- The Next Generation IRC Daemon
3 * Copyright (c)2001-2005 by Alexander Barton (alex@barton.de)
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
9 * Please read the file COPYING, README and AUTHORS for more information.
20 static char UNUSED id[] = "$Id: client.c,v 1.82 2005/06/04 12:32:09 fw Exp $";
43 #include "irc-write.h"
50 #define GETID_LEN (CLIENT_NICK_LEN-1) + 1 + (CLIENT_USER_LEN-1) + 1 + (CLIENT_HOST_LEN-1) + 1
53 LOCAL CLIENT *This_Server, *My_Clients;
54 LOCAL char GetID_Buffer[GETID_LEN];
56 LOCAL WHOWAS My_Whowas[MAX_WHOWAS];
57 LOCAL int Last_Whowas = -1;
60 LOCAL long Count PARAMS(( CLIENT_TYPE Type ));
61 LOCAL long MyCount PARAMS(( CLIENT_TYPE Type ));
63 LOCAL CLIENT *New_Client_Struct PARAMS(( void ));
64 LOCAL void Generate_MyToken PARAMS(( CLIENT *Client ));
65 LOCAL void Adjust_Counters PARAMS(( CLIENT *Client ));
67 #ifndef Client_DestroyNow
68 GLOBAL void Client_DestroyNow PARAMS((CLIENT *Client ));
72 long Max_Users = 0, My_Max_Users = 0;
80 This_Server = New_Client_Struct( );
83 Log( LOG_EMERG, "Can't allocate client structure for server! Going down." );
84 Log( LOG_ALERT, "%s exiting due to fatal errors!", PACKAGE_NAME );
88 /* Client-Struktur dieses Servers */
89 This_Server->next = NULL;
90 This_Server->type = CLIENT_SERVER;
91 This_Server->conn_id = NONE;
92 This_Server->introducer = This_Server;
93 This_Server->mytoken = 1;
94 This_Server->hops = 0;
96 gethostname( This_Server->host, CLIENT_HOST_LEN );
97 h = gethostbyname( This_Server->host );
98 if( h ) strlcpy( This_Server->host, h->h_name, sizeof( This_Server->host ));
100 Client_SetID( This_Server, Conf_ServerName );
101 Client_SetInfo( This_Server, Conf_ServerInfo );
103 My_Clients = This_Server;
105 memset( &My_Whowas, 0, sizeof( My_Whowas ));
115 if( NGIRCd_SignalRestart ) Client_Destroy( This_Server, "Server going down (restarting).", NULL, false );
116 else Client_Destroy( This_Server, "Server going down.", NULL, false );
123 next = (CLIENT *)c->next;
127 if( cnt ) Log( LOG_INFO, "Freed %d client structure%s.", cnt, cnt == 1 ? "" : "s" );
132 Client_ThisServer( void )
135 } /* Client_ThisServer */
139 Client_NewLocal( CONN_ID Idx, char *Hostname, int Type, bool Idented )
141 /* Neuen lokalen Client erzeugen: Wrapper-Funktion fuer Client_New(). */
142 return Client_New( Idx, This_Server, NULL, Type, NULL, NULL, Hostname, NULL, 0, 0, NULL, Idented );
143 } /* Client_NewLocal */
147 Client_NewRemoteServer( CLIENT *Introducer, char *Hostname, CLIENT *TopServer, int Hops, int Token, char *Info, bool Idented )
149 /* Neuen Remote-Client erzeugen: Wrapper-Funktion fuer Client_New (). */
150 return Client_New( NONE, Introducer, TopServer, CLIENT_SERVER, Hostname, NULL, Hostname, Info, Hops, Token, NULL, Idented );
151 } /* Client_NewRemoteServer */
155 Client_NewRemoteUser( CLIENT *Introducer, char *Nick, int Hops, char *User, char *Hostname, int Token, char *Modes, char *Info, bool Idented )
157 /* Neuen Remote-Client erzeugen: Wrapper-Funktion fuer Client_New (). */
158 return Client_New( NONE, Introducer, NULL, CLIENT_USER, Nick, User, Hostname, Info, Hops, Token, Modes, Idented );
159 } /* Client_NewRemoteUser */
163 Client_New( CONN_ID Idx, CLIENT *Introducer, CLIENT *TopServer, int Type, char *ID, char *User, char *Hostname, char *Info, int Hops, int Token, char *Modes, bool Idented )
167 assert( Idx >= NONE );
168 assert( Introducer != NULL );
169 assert( Hostname != NULL );
171 client = New_Client_Struct( );
172 if( ! client ) return NULL;
175 client->conn_id = Idx;
176 client->introducer = Introducer;
177 client->topserver = TopServer;
179 if( ID ) Client_SetID( client, ID );
180 if( User ) Client_SetUser( client, User, Idented );
181 if( Hostname ) Client_SetHostname( client, Hostname );
182 if( Info ) Client_SetInfo( client, Info );
184 client->token = Token;
185 if( Modes ) Client_SetModes( client, Modes );
186 if( Type == CLIENT_SERVER ) Generate_MyToken( client );
188 /* ist der User away? */
189 if( strchr( client->modes, 'a' )) strlcpy( client->away, DEFAULT_AWAY_MSG, sizeof( client->away ));
192 client->next = (POINTER *)My_Clients;
195 /* Adjust counters */
196 Adjust_Counters( client );
203 Client_Destroy( CLIENT *Client, char *LogMsg, char *FwdMsg, bool SendQuit )
205 /* Client entfernen. */
208 char msg[LINE_LEN], *txt;
210 assert( Client != NULL );
212 if( LogMsg ) txt = LogMsg;
214 if( ! txt ) txt = "Reason unknown.";
216 /* Netz-Split-Nachricht vorbereiten (noch nicht optimal) */
217 if( Client->type == CLIENT_SERVER ) {
218 strlcpy(msg, This_Server->id, sizeof (msg));
219 strlcat(msg, " ", sizeof (msg));
220 strlcat(msg, Client->id, sizeof (msg));
227 if(( Client->type == CLIENT_SERVER ) && ( c->introducer == Client ) && ( c != Client ))
229 /* der Client, der geloescht wird ist ein Server. Der Client, den wir gerade
230 * pruefen, ist ein Child von diesem und muss daher auch entfernt werden */
231 Client_Destroy( c, NULL, msg, false );
238 /* Wir haben den Client gefunden: entfernen */
239 if( last ) last->next = c->next;
240 else My_Clients = (CLIENT *)c->next;
242 if( c->type == CLIENT_USER )
244 if( c->conn_id != NONE )
246 /* Ein lokaler User */
247 Log( LOG_NOTICE, "User \"%s\" unregistered (connection %d): %s", Client_Mask( c ), c->conn_id, txt );
251 /* Alle andere Server informieren! */
252 if( FwdMsg ) IRC_WriteStrServersPrefix( NULL, c, "QUIT :%s", FwdMsg );
253 else IRC_WriteStrServersPrefix( NULL, c, "QUIT :" );
259 Log( LOG_DEBUG, "User \"%s\" unregistered: %s", Client_Mask( c ), txt );
263 /* Andere Server informieren, ausser denen, die "in
264 * Richtung dem liegen", auf dem der User registriert
265 * ist. Von denen haben wir das QUIT ja wohl bekommen. */
266 if( FwdMsg ) IRC_WriteStrServersPrefix( Client_NextHop( c ), c, "QUIT :%s", FwdMsg );
267 else IRC_WriteStrServersPrefix( Client_NextHop( c ), c, "QUIT :" );
271 /* Unregister client from channels */
272 Channel_Quit( c, FwdMsg ? FwdMsg : c->id );
274 /* Register client in My_Whowas structure */
275 Client_RegisterWhowas( c );
277 else if( c->type == CLIENT_SERVER )
279 if( c != This_Server )
281 if( c->conn_id != NONE ) Log( LOG_NOTICE|LOG_snotice, "Server \"%s\" unregistered (connection %d): %s", c->id, c->conn_id, txt );
282 else Log( LOG_NOTICE|LOG_snotice, "Server \"%s\" unregistered: %s", c->id, txt );
285 /* andere Server informieren */
286 if( ! NGIRCd_SignalQuit )
288 if( FwdMsg ) IRC_WriteStrServersPrefix( Client_NextHop( c ), c, "SQUIT %s :%s", c->id, FwdMsg );
289 else IRC_WriteStrServersPrefix( Client_NextHop( c ), c, "SQUIT %s :", c->id );
294 if( c->conn_id != NONE )
296 if( c->id[0] ) Log( LOG_NOTICE, "Client \"%s\" unregistered (connection %d): %s", c->id, c->conn_id, txt );
297 else Log( LOG_NOTICE, "Client unregistered (connection %d): %s", c->conn_id, txt );
301 if( c->id[0] ) Log( LOG_WARNING, "Unregistered unknown client \"%s\": %s", c->id, txt );
302 else Log( LOG_WARNING, "Unregistered unknown client: %s", c->id, txt );
310 c = (CLIENT *)c->next;
312 } /* Client_Destroy */
316 Client_DestroyNow( CLIENT *Client )
318 /* Destroy client structure immediately. This function is only
319 * intended for the connection layer to remove client structures
320 * of connections that can't be established! */
324 assert( Client != NULL );
332 /* Wir haben den Client gefunden: entfernen */
333 if( last ) last->next = c->next;
334 else My_Clients = (CLIENT *)c->next;
339 c = (CLIENT *)c->next;
341 } /* Client_DestroyNow */
345 Client_SetHostname( CLIENT *Client, char *Hostname )
347 /* Hostname eines Clients setzen */
349 assert( Client != NULL );
350 assert( Hostname != NULL );
352 strlcpy( Client->host, Hostname, sizeof( Client->host ));
353 } /* Client_SetHostname */
357 Client_SetID( CLIENT *Client, char *ID )
359 /* Hostname eines Clients setzen, Hash-Wert berechnen */
361 assert( Client != NULL );
362 assert( ID != NULL );
364 strlcpy( Client->id, ID, sizeof( Client->id ));
367 Client->hash = Hash( Client->id );
372 Client_SetUser( CLIENT *Client, char *User, bool Idented )
374 /* Username eines Clients setzen */
376 assert( Client != NULL );
377 assert( User != NULL );
379 if( Idented ) strlcpy( Client->user, User, sizeof( Client->user ));
382 Client->user[0] = '~';
383 strlcpy( Client->user + 1, User, sizeof( Client->user ) - 1 );
385 } /* Client_SetUser */
389 Client_SetInfo( CLIENT *Client, char *Info )
391 /* Hostname eines Clients setzen */
393 assert( Client != NULL );
394 assert( Info != NULL );
396 strlcpy( Client->info, Info, sizeof( Client->info ));
397 } /* Client_SetInfo */
401 Client_SetModes( CLIENT *Client, char *Modes )
403 /* Modes eines Clients setzen */
405 assert( Client != NULL );
406 assert( Modes != NULL );
408 strlcpy( Client->modes, Modes, sizeof( Client->modes ));
409 } /* Client_SetModes */
413 Client_SetFlags( CLIENT *Client, char *Flags )
415 /* Flags eines Clients setzen */
417 assert( Client != NULL );
418 assert( Flags != NULL );
420 strlcpy( Client->flags, Flags, sizeof( Client->flags ));
421 } /* Client_SetFlags */
425 Client_SetPassword( CLIENT *Client, char *Pwd )
427 /* Von einem Client geliefertes Passwort */
429 assert( Client != NULL );
430 assert( Pwd != NULL );
432 strlcpy( Client->pwd, Pwd, sizeof( Client->pwd ));
433 } /* Client_SetPassword */
437 Client_SetAway( CLIENT *Client, char *Txt )
439 /* Set AWAY reason of client */
441 assert( Client != NULL );
442 assert( Txt != NULL );
444 strlcpy( Client->away, Txt, sizeof( Client->away ));
445 Log( LOG_DEBUG, "User \"%s\" is away: %s", Client_Mask( Client ), Txt );
446 } /* Client_SetAway */
450 Client_SetType( CLIENT *Client, int Type )
452 assert( Client != NULL );
454 if( Type == CLIENT_SERVER ) Generate_MyToken( Client );
455 Adjust_Counters( Client );
456 } /* Client_SetType */
460 Client_SetHops( CLIENT *Client, int Hops )
462 assert( Client != NULL );
464 } /* Client_SetHops */
468 Client_SetToken( CLIENT *Client, int Token )
470 assert( Client != NULL );
471 Client->token = Token;
472 } /* Client_SetToken */
476 Client_SetIntroducer( CLIENT *Client, CLIENT *Introducer )
478 assert( Client != NULL );
479 assert( Introducer != NULL );
480 Client->introducer = Introducer;
481 } /* Client_SetIntroducer */
485 Client_SetOperByMe( CLIENT *Client, bool OperByMe )
487 assert( Client != NULL );
488 Client->oper_by_me = OperByMe;
489 } /* Client_SetOperByMe */
493 Client_ModeAdd( CLIENT *Client, char Mode )
496 * If Client already alread had Mode, return false.
497 * If the Mode was newly set, return true.
502 assert( Client != NULL );
504 x[0] = Mode; x[1] = '\0';
505 if( ! strchr( Client->modes, x[0] ))
507 /* Client hat den Mode noch nicht -> setzen */
508 strlcat( Client->modes, x, sizeof( Client->modes ));
512 } /* Client_ModeAdd */
516 Client_ModeDel( CLIENT *Client, char Mode )
519 * If Mode was removed, return true.
520 * If Client did not have Mode, return false.
525 assert( Client != NULL );
527 x[0] = Mode; x[1] = '\0';
529 p = strchr( Client->modes, x[0] );
530 if( ! p ) return false;
532 /* Client has Mode -> delete */
539 } /* Client_ModeDel */
543 Client_GetFromConn( CONN_ID Idx )
545 /* return Client-Structure that belongs to the local Connection Idx gehoert.
546 * If none is found, return NULL.
556 if( c->conn_id == Idx ) return c;
557 c = (CLIENT *)c->next;
560 } /* Client_GetFromConn */
564 Client_Search( char *Nick )
566 /* return Client-Structure that has the corresponding Nick.
567 * If none is found, return NULL.
570 char search_id[CLIENT_ID_LEN], *ptr;
574 assert( Nick != NULL );
576 /* copy Nick and truncate hostmask if necessary */
577 strlcpy( search_id, Nick, sizeof( search_id ));
578 ptr = strchr( search_id, '!' );
579 if( ptr ) *ptr = '\0';
581 search_hash = Hash( search_id );
586 if( c->hash == search_hash )
588 /* lt. Hash-Wert: Treffer! */
589 if( strcasecmp( c->id, search_id ) == 0 ) return c;
591 c = (CLIENT *)c->next;
594 } /* Client_Search */
598 Client_GetFromToken( CLIENT *Client, int Token )
600 /* Client-Struktur, die den entsprechenden Introducer (=Client)
601 * und das gegebene Token hat, liefern. Wird keine gefunden,
602 * so wird NULL geliefert. */
606 assert( Client != NULL );
612 if(( c->type == CLIENT_SERVER ) && ( c->introducer == Client ) && ( c->token == Token )) return c;
613 c = (CLIENT *)c->next;
616 } /* Client_GetFromToken */
620 Client_Type( CLIENT *Client )
622 assert( Client != NULL );
628 Client_Conn( CLIENT *Client )
630 assert( Client != NULL );
631 return Client->conn_id;
636 Client_ID( CLIENT *Client )
638 assert( Client != NULL );
641 if( Client->type == CLIENT_USER ) assert( strlen( Client->id ) < CLIENT_NICK_LEN );
644 if( Client->id[0] ) return Client->id;
650 Client_Info( CLIENT *Client )
652 assert( Client != NULL );
658 Client_User( CLIENT *Client )
660 assert( Client != NULL );
661 if( Client->user[0] ) return Client->user;
667 Client_Hostname( CLIENT *Client )
669 assert( Client != NULL );
671 } /* Client_Hostname */
675 Client_Password( CLIENT *Client )
677 assert( Client != NULL );
679 } /* Client_Password */
683 Client_Modes( CLIENT *Client )
685 assert( Client != NULL );
686 return Client->modes;
691 Client_Flags( CLIENT *Client )
693 assert( Client != NULL );
694 return Client->flags;
699 Client_OperByMe( CLIENT *Client )
701 assert( Client != NULL );
702 return Client->oper_by_me;
703 } /* Client_OperByMe */
707 Client_Hops( CLIENT *Client )
709 assert( Client != NULL );
715 Client_Token( CLIENT *Client )
717 assert( Client != NULL );
718 return Client->token;
723 Client_MyToken( CLIENT *Client )
725 assert( Client != NULL );
726 return Client->mytoken;
727 } /* Client_MyToken */
731 Client_NextHop( CLIENT *Client )
735 assert( Client != NULL );
738 while( c->introducer && ( c->introducer != c ) && ( c->introducer != This_Server )) c = c->introducer;
740 } /* Client_NextHop */
744 Client_Mask( CLIENT *Client )
746 /* Client-"ID" liefern, wie sie z.B. fuer
747 * Prefixe benoetigt wird. */
749 assert( Client != NULL );
751 if( Client->type == CLIENT_SERVER ) return Client->id;
753 snprintf( GetID_Buffer, GETID_LEN, "%s!%s@%s", Client->id, Client->user, Client->host );
759 Client_Introducer( CLIENT *Client )
761 assert( Client != NULL );
762 return Client->introducer;
763 } /* Client_Introducer */
767 Client_TopServer( CLIENT *Client )
769 assert( Client != NULL );
770 return Client->topserver;
771 } /* Client_TopServer */
775 Client_HasMode( CLIENT *Client, char Mode )
777 assert( Client != NULL );
778 return strchr( Client->modes, Mode ) != NULL;
779 } /* Client_HasMode */
783 Client_Away( CLIENT *Client )
785 /* AWAY-Text liefern */
787 assert( Client != NULL );
793 Client_CheckNick( CLIENT *Client, char *Nick )
795 /* Nick ueberpruefen */
797 assert( Client != NULL );
798 assert( Nick != NULL );
800 /* Nick ungueltig? */
801 if( ! Client_IsValidNick( Nick ))
803 IRC_WriteStrClient( Client, ERR_ERRONEUSNICKNAME_MSG, Client_ID( Client ), Nick );
807 /* Nick bereits vergeben? */
808 if( Client_Search( Nick ))
810 /* den Nick gibt es bereits */
811 IRC_WriteStrClient( Client, ERR_NICKNAMEINUSE_MSG, Client_ID( Client ), Nick );
816 } /* Client_CheckNick */
820 Client_CheckID( CLIENT *Client, char *ID )
822 /* Nick ueberpruefen */
824 char str[COMMAND_LEN];
827 assert( Client != NULL );
828 assert( Client->conn_id > NONE );
829 assert( ID != NULL );
832 if( strlen( ID ) > CLIENT_ID_LEN )
834 IRC_WriteStrClient( Client, ERR_ERRONEUSNICKNAME_MSG, Client_ID( Client ), ID );
838 /* ID bereits vergeben? */
842 if( strcasecmp( c->id, ID ) == 0 )
844 /* die Server-ID gibt es bereits */
845 snprintf( str, sizeof( str ), "ID \"%s\" already registered", ID );
846 if( Client->conn_id != c->conn_id ) Log( LOG_ERR, "%s (on connection %d)!", str, c->conn_id );
847 else Log( LOG_ERR, "%s (via network)!", str );
848 Conn_Close( Client->conn_id, str, str, true);
851 c = (CLIENT *)c->next;
855 } /* Client_CheckID */
861 /* Ersten Client liefern. */
868 Client_Next( CLIENT *c )
870 /* Naechsten Client liefern. Existiert keiner,
871 * so wird NULL geliefert. */
874 return (CLIENT *)c->next;
879 Client_UserCount( void )
881 return Count( CLIENT_USER );
882 } /* Client_UserCount */
886 Client_ServiceCount( void )
888 return Count( CLIENT_SERVICE );;
889 } /* Client_ServiceCount */
893 Client_ServerCount( void )
895 return Count( CLIENT_SERVER );
896 } /* Client_ServerCount */
900 Client_MyUserCount( void )
902 return MyCount( CLIENT_USER );
903 } /* Client_MyUserCount */
907 Client_MyServiceCount( void )
909 return MyCount( CLIENT_SERVICE );
910 } /* Client_MyServiceCount */
914 Client_MyServerCount( void )
923 if(( c->type == CLIENT_SERVER ) && ( c->hops == 1 )) cnt++;
924 c = (CLIENT *)c->next;
927 } /* Client_MyServerCount */
931 Client_OperCount( void )
940 if( c && ( c->type == CLIENT_USER ) && ( strchr( c->modes, 'o' ))) cnt++;
941 c = (CLIENT *)c->next;
944 } /* Client_OperCount */
948 Client_UnknownCount( void )
957 if( c && ( c->type != CLIENT_USER ) && ( c->type != CLIENT_SERVICE ) && ( c->type != CLIENT_SERVER )) cnt++;
958 c = (CLIENT *)c->next;
961 } /* Client_UnknownCount */
965 Client_MaxUserCount( void )
968 } /* Client_MaxUserCount */
972 Client_MyMaxUserCount( void )
975 } /* Client_MyMaxUserCount */
979 Client_IsValidNick( char *Nick )
981 /* Ist der Nick gueltig? */
983 char *ptr, goodchars[20];
985 assert( Nick != NULL );
987 strcpy( goodchars, ";0123456789-" );
989 if( Nick[0] == '#' ) return false;
990 if( strchr( goodchars, Nick[0] )) return false;
991 if( strlen( Nick ) >= CLIENT_NICK_LEN ) return false;
996 if(( *ptr < 'A' ) && ( ! strchr( goodchars, *ptr ))) return false;
997 if(( *ptr > '}' ) && ( ! strchr( goodchars, *ptr ))) return false;
1002 } /* Client_IsValidNick */
1006 * Return pointer to "My_Whowas" structure.
1009 Client_GetWhowas( void )
1012 } /* Client_GetWhowas */
1015 * Return the index of the last used WHOWAS entry.
1018 Client_GetLastWhowasIndex( void )
1021 } /* Client_GetLastWhowasIndex */
1025 Count( CLIENT_TYPE Type )
1034 if( c->type == Type ) cnt++;
1035 c = (CLIENT *)c->next;
1042 MyCount( CLIENT_TYPE Type )
1051 if(( c->introducer == This_Server ) && ( c->type == Type )) cnt++;
1052 c = (CLIENT *)c->next;
1059 New_Client_Struct( void )
1061 /* Neue CLIENT-Struktur pre-initialisieren */
1065 c = (CLIENT *)malloc( sizeof( CLIENT ));
1068 Log( LOG_EMERG, "Can't allocate memory! [New_Client_Struct]" );
1072 memset( c, 0, sizeof ( CLIENT ));
1074 c->type = CLIENT_UNKNOWN;
1076 c->oper_by_me = false;
1086 Generate_MyToken( CLIENT *Client )
1095 if( c->mytoken == token )
1097 /* Das Token wurde bereits vergeben */
1102 else c = (CLIENT *)c->next;
1104 Client->mytoken = token;
1105 Log( LOG_DEBUG, "Assigned token %d to server \"%s\".", token, Client->id );
1106 } /* Generate_MyToken */
1110 Adjust_Counters( CLIENT *Client )
1114 assert( Client != NULL );
1116 if( Client->type != CLIENT_USER ) return;
1118 if( Client->conn_id != NONE )
1120 /* Local connection */
1121 count = Client_MyUserCount( );
1122 if( count > My_Max_Users ) My_Max_Users = count;
1124 count = Client_UserCount( );
1125 if( count > Max_Users ) Max_Users = count;
1126 } /* Adjust_Counters */
1130 * Register client in My_Whowas structure for further recall by WHOWAS.
1133 Client_RegisterWhowas( CLIENT *Client )
1137 assert( Client != NULL );
1139 slot = Last_Whowas + 1;
1140 if( slot >= MAX_WHOWAS || slot < 0 ) slot = 0;
1143 Log( LOG_DEBUG, "Saving WHOWAS information to slot %d ...", slot );
1146 My_Whowas[slot].time = time( NULL );
1147 strlcpy( My_Whowas[slot].id, Client_ID( Client ),
1148 sizeof( My_Whowas[slot].id ));
1149 strlcpy( My_Whowas[slot].user, Client_User( Client ),
1150 sizeof( My_Whowas[slot].user ));
1151 strlcpy( My_Whowas[slot].host, Client_Hostname( Client ),
1152 sizeof( My_Whowas[slot].host ));
1153 strlcpy( My_Whowas[slot].info, Client_Info( Client ),
1154 sizeof( My_Whowas[slot].info ));
1155 strlcpy( My_Whowas[slot].server, Client_ID( Client_Introducer( Client )),
1156 sizeof( My_Whowas[slot].server ));
1159 } /* Client_RegisterWhowas */