updates.
[silc.git] / apps / silcd / command_reply.c
index 88a91d64854449b079c7b3e7b15695739c95cd60..cb6c6973793d99e1480b6b5f09b61e7c27232a36 100644 (file)
@@ -813,12 +813,13 @@ SILC_SERVER_CMD_REPLY_FUNC(join)
       silc_free(id);
       goto out;
     }
+    server->stat.my_channels++;
   } else {
     /* The entry exists. */
-    if (cache->id)
-      silc_free(cache->id);
+    silc_free(cache->id);
     entry->id = id;
     cache->id = entry->id;
+    entry->disabled = FALSE;
 
     /* Remove the founder auth data if the mode is not set but we have
        them in the entry */