Channel statistics fix.
authorPekka Riikonen <priikone@silcnet.org>
Mon, 4 Nov 2002 13:09:42 +0000 (13:09 +0000)
committerPekka Riikonen <priikone@silcnet.org>
Mon, 4 Nov 2002 13:09:42 +0000 (13:09 +0000)
apps/silcd/packet_receive.c

index 089a05d3d16341575e1b7e993081969e674c275a..feb4e0198c0a8392c312be0e3d3f81f900ab78e4 100644 (file)
@@ -2318,7 +2318,7 @@ SilcClientEntry silc_server_new_client(SilcServer server,
   idata->status |= SILC_IDLIST_STATUS_REGISTERED;
   client->nickname = nickname;
   client->username = username;
-  client->userinfo = realname ? realname : strdup(" ");
+  client->userinfo = realname ? realname : strdup(username);
   client->id = client_id;
   id_len = silc_id_get_len(client_id, SILC_ID_CLIENT);
 
@@ -3064,10 +3064,6 @@ void silc_server_new_channel(SilcServer server,
 
       silc_free(channel_id);
 
-      /* Update statistics */
-      server->stat.channels++;
-      server->stat.cell_channels++;
-
       /* Since the channel is coming from server and we also know about it
         then send the JOIN notify to the server so that it see's our
         users on the channel "joining" the channel. */