#include "portab.h"
-static char UNUSED id[] = "$Id: client.c,v 1.89 2006/03/11 10:43:49 fw Exp $";
+static char UNUSED id[] = "$Id: client.c,v 1.91 2006/04/23 10:37:27 fw Exp $";
#include "imp.h"
#include <assert.h>
{
if( c->id[0] ) Log( LOG_NOTICE, "Client \"%s\" unregistered (connection %d): %s", c->id, c->conn_id, txt );
else Log( LOG_NOTICE, "Client unregistered (connection %d): %s", c->conn_id, txt );
- }
- else
- {
- if( c->id[0] ) Log( LOG_WARNING, "Unregistered unknown client \"%s\": %s", c->id, txt );
- else Log( LOG_WARNING, "Unregistered unknown client: %s", c->id, txt );
+ } else {
+ Log(LOG_WARNING, "Unregistered unknown client \"%s\": %s",
+ c->id[0] ? c->id : "(No Nick)", txt );
}
}
} /* Client_ModeDel */
-GLOBAL CLIENT *
-Client_GetFromConn( CONN_ID Idx )
-{
- /* return Client-Structure that belongs to the local Connection Idx.
- * If none is found, return NULL.
- */
-
- CLIENT *c;
-
- assert( Idx >= 0 );
-
- c = My_Clients;
- while( c )
- {
- if( c->conn_id == Idx ) return c;
- c = (CLIENT *)c->next;
- }
- return NULL;
-} /* Client_GetFromConn */
-
-
GLOBAL CLIENT *
Client_Search( char *Nick )
{