Author: Pekka Riikonen <priikone@silcnet.org>
- Copyright (C) 1997 - 2005, 2007 Pekka Riikonen
+ Copyright (C) 1997 - 2009 Pekka Riikonen
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
client->data.status &= ~SILC_IDLIST_STATUS_RESOLVING;
client->mode = mode;
client->servername = servername[0] ? strdup(servername) : NULL;
+
+ SILC_LOG_DEBUG(("stat.clients %d->%d", server->stat.clients,
+ server->stat.clients + 1));
+ server->stat.clients++;
} else {
/* We have the client already, update the data */
to global list since server didn't have it in the lists so it must be
global. */
client = silc_idlist_add_client(server->global_list,
- nick[0] ? nick : NULL, info, NULL,
+ nick[0] ? strdup(nick) : NULL,
+ info ? strdup(info) : NULL, NULL,
silc_id_dup(&client_id, SILC_ID_CLIENT),
silc_packet_get_context(cmd->sock),
NULL);
client->data.status |= SILC_IDLIST_STATUS_REGISTERED;
client->data.status |= SILC_IDLIST_STATUS_RESOLVED;
client->data.status &= ~SILC_IDLIST_STATUS_RESOLVING;
+
+ SILC_LOG_DEBUG(("stat.clients %d->%d", server->stat.clients,
+ server->stat.clients + 1));
+ server->stat.clients++;
} else {
/* We have the client already, update the data */
SILC_STR_END);
}
+ SILC_LOG_DEBUG(("stat.clients = %d", server->stat.clients));
+
out:
SILC_SERVER_PENDING_EXEC(cmd, SILC_COMMAND_STATS);
err: