Merged silc_1_0_branch to trunk.
[silc.git] / apps / silcd / command_reply.c
index b4862c61221ed3d38de4bd46891c810400405ceb..506c7f1e79b7094791a0a9e17c834b2bdecf159e 100644 (file)
@@ -962,6 +962,9 @@ SILC_SERVER_CMD_REPLY_FUNC(motd)
       if (server->server_type != SILC_SERVER)
        goto out;
 
+      /* Statistics */
+      cmd->server->stat.commands_sent++;
+
       /* entry isn't known so we IDENTIFY it. otherwise the
          silc_server_command_motd won't know about it and tell
          the client that there is no such server */
@@ -1216,7 +1219,7 @@ SILC_SERVER_CMD_REPLY_FUNC(join)
 
   /* Get channel public key list */
   tmp = silc_argument_get_arg_type(cmd->args, 16, &len);
-  if (tmp && server->server_type == SILC_SERVER)
+  if (tmp && server->server_type != SILC_ROUTER)
     silc_server_set_channel_pk_list(server, NULL, entry, tmp, len);
 
   /* The the user limit */