Merge branch 'topic/detach-fixes' of git://valera-ext.nynaeve.net/silc into silc...
[silc.git] / apps / silcd / server.c
index 2f97d79d837aaeee25893ad676f2f5cd1dab382d..5120382aa64e5b9b43138eeee0d7c5eefcfe1ed6 100644 (file)
@@ -3150,7 +3150,10 @@ void silc_server_free_client_data(SilcServer server,
   }
 
   /* Update statistics */
-  server->stat.my_clients--;
+
+  /* Local detached clients aren't counted. */
+  if (!client->local_detached)
+    server->stat.my_clients--;
   SILC_VERIFY(server->stat.clients > 0);
   server->stat.clients--;
   if (server->stat.cell_clients)
@@ -5030,7 +5033,7 @@ void silc_server_save_users_on_channel(SilcServer server,
     }
 
     if (!(client->data.status & SILC_IDLIST_STATUS_REGISTERED)) {
-      SILC_LOG_ERROR(("Attempting to add unregistered client to channel ",
+      SILC_LOG_ERROR(("Attempting to add unregistered client to channel "
                      "%s", channel->channel_name));
       continue;
     }