mirror of
https://github.com/osmarks/ngircd.git
synced 2025-01-15 18:15:40 +00:00
- neue Funktion Client_Name().
This commit is contained in:
parent
64322810fa
commit
9067612941
@ -9,7 +9,7 @@
|
||||
* Naehere Informationen entnehmen Sie bitter der Datei COPYING. Eine Liste
|
||||
* der an comBase beteiligten Autoren finden Sie in der Datei AUTHORS.
|
||||
*
|
||||
* $Id: client.c,v 1.5 2001/12/25 22:04:26 alex Exp $
|
||||
* $Id: client.c,v 1.6 2001/12/26 03:19:16 alex Exp $
|
||||
*
|
||||
* client.c: Management aller Clients
|
||||
*
|
||||
@ -21,6 +21,9 @@
|
||||
* Server gewesen, so existiert eine entsprechende CONNECTION-Struktur.
|
||||
*
|
||||
* $Log: client.c,v $
|
||||
* Revision 1.6 2001/12/26 03:19:16 alex
|
||||
* - neue Funktion Client_Name().
|
||||
*
|
||||
* Revision 1.5 2001/12/25 22:04:26 alex
|
||||
* - Aenderungen an den Debug- und Logging-Funktionen.
|
||||
*
|
||||
@ -170,6 +173,15 @@ GLOBAL CLIENT *Client_GetFromConn( CONN_ID Idx )
|
||||
} /* Client_GetFromConn */
|
||||
|
||||
|
||||
GLOBAL CHAR *Client_Name( CLIENT *Client )
|
||||
{
|
||||
assert( Client != NULL );
|
||||
|
||||
if( Client->nick[0] ) return Client->nick;
|
||||
else return "*";
|
||||
} /* Client_Name */
|
||||
|
||||
|
||||
LOCAL CLIENT *New_Client_Struct( VOID )
|
||||
{
|
||||
/* Neue CLIENT-Struktur pre-initialisieren */
|
||||
|
@ -9,11 +9,14 @@
|
||||
* Naehere Informationen entnehmen Sie bitter der Datei COPYING. Eine Liste
|
||||
* der an comBase beteiligten Autoren finden Sie in der Datei AUTHORS.
|
||||
*
|
||||
* $Id: client.h,v 1.3 2001/12/25 19:21:26 alex Exp $
|
||||
* $Id: client.h,v 1.4 2001/12/26 03:19:16 alex Exp $
|
||||
*
|
||||
* client.h: Konfiguration des ngircd (Header)
|
||||
*
|
||||
* $Log: client.h,v $
|
||||
* Revision 1.4 2001/12/26 03:19:16 alex
|
||||
* - neue Funktion Client_Name().
|
||||
*
|
||||
* Revision 1.3 2001/12/25 19:21:26 alex
|
||||
* - Client-Typ ("Status") besser unterteilt, My_Clients ist zudem nun global.
|
||||
*
|
||||
@ -84,6 +87,7 @@ GLOBAL VOID Client_Exit( VOID );
|
||||
GLOBAL CLIENT *Client_New_Local( CONN_ID Idx, CHAR *Hostname );
|
||||
GLOBAL VOID Client_Destroy( CLIENT *Client );
|
||||
GLOBAL CLIENT *Client_GetFromConn( CONN_ID Idx );
|
||||
GLOBAL CHAR *Client_Name( CLIENT *Client );
|
||||
|
||||
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user