Fixed WATCH command reply handling.
[silc.git] / apps / silcd / server.c
index 42b5e78b039db4278ec1c94d75002d2945f82427..3e1eef79a88e44bae8d97f5856b57e5a0f558d04 100644 (file)
@@ -490,7 +490,7 @@ bool silc_server_init(SilcServer server)
 
   /* If we are normal server we'll retrieve network statisticial information
      once in a while from the router. */
-  if (server->server_type == SILC_SERVER)
+  if (server->server_type != SILC_ROUTER)
     silc_schedule_task_add(server->schedule, 0, silc_server_get_stats,
                           server, 10, 0, SILC_TASK_TIMEOUT,
                           SILC_TASK_PRI_LOW);