if (server->server_type != SILC_ROUTER && !client->data.public_key) {
SilcAttributePayload attr;
SilcAttributeObjPk pk;
- unsigned char f[20];
+ unsigned char f[SILC_HASH_MAXLEN];
SilcDList attrs = silc_attribute_payload_parse(tmp, len);
SILC_LOG_DEBUG(("Take client public key from attributes"));
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 */
/* 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 */