/** Wait for command reply */
silc_fsm_next(fsm, silc_client_command_reply_wait);
/** Wait for command reply */
silc_fsm_next(fsm, silc_client_command_reply_wait);
/** Wait for command reply */
silc_fsm_next(fsm, silc_client_command_reply_wait);
/** Wait for command reply */
silc_fsm_next(fsm, silc_client_command_reply_wait);
"Usage: /WHOWAS <nickname>[@<server>] [<count>]");
COMMAND_ERROR((cmd->argc < 2 ? SILC_STATUS_ERR_NOT_ENOUGH_PARAMS :
SILC_STATUS_ERR_TOO_MANY_PARAMS));
"Usage: /WHOWAS <nickname>[@<server>] [<count>]");
COMMAND_ERROR((cmd->argc < 2 ? SILC_STATUS_ERR_NOT_ENOUGH_PARAMS :
SILC_STATUS_ERR_TOO_MANY_PARAMS));
/** Wait for command reply */
silc_fsm_next(fsm, silc_client_command_reply_wait);
/** Wait for command reply */
silc_fsm_next(fsm, silc_client_command_reply_wait);
if (cmd->argc == 2) {
silc_client_command_send_va(conn, cmd, cmd->cmd, NULL, NULL,
if (cmd->argc == 2) {
silc_client_command_send_va(conn, cmd, cmd->cmd, NULL, NULL,
/** Wait for command reply */
silc_fsm_next(fsm, silc_client_command_reply_wait);
/** Wait for command reply */
silc_fsm_next(fsm, silc_client_command_reply_wait);
/** Wait for command reply */
silc_fsm_next(fsm, silc_client_command_reply_wait);
/** Wait for command reply */
silc_fsm_next(fsm, silc_client_command_reply_wait);
/** Wait for command reply */
silc_fsm_next(fsm, silc_client_command_reply_wait);
/** Wait for command reply */
silc_fsm_next(fsm, silc_client_command_reply_wait);
/** Wait for command reply */
silc_fsm_next(fsm, silc_client_command_reply_wait);
/** Wait for command reply */
silc_fsm_next(fsm, silc_client_command_reply_wait);
/** Wait for command reply */
silc_fsm_next(fsm, silc_client_command_reply_wait);
/** Wait for command reply */
silc_fsm_next(fsm, silc_client_command_reply_wait);
/* We close the connection with a little timeout */
silc_fsm_next_later(fsm, silc_client_command_quit_final, 2, 0);
/* We close the connection with a little timeout */
silc_fsm_next_later(fsm, silc_client_command_quit_final, 2, 0);
SAY(conn->client, conn, SILC_CLIENT_MESSAGE_INFO,
"Usage: /KILL <nickname> [<comment>] [-pubkey]");
COMMAND_ERROR(SILC_STATUS_ERR_NOT_ENOUGH_PARAMS);
SAY(conn->client, conn, SILC_CLIENT_MESSAGE_INFO,
"Usage: /KILL <nickname> [<comment>] [-pubkey]");
COMMAND_ERROR(SILC_STATUS_ERR_NOT_ENOUGH_PARAMS);
}
/* Parse the typed nickname. */
if (!silc_client_nickname_parse(client, conn, cmd->argv[1], &nickname))
}
/* Parse the typed nickname. */
if (!silc_client_nickname_parse(client, conn, cmd->argv[1], &nickname))
/* Get the target client */
clients = silc_client_get_clients_local(client, conn, nickname,
/* Get the target client */
clients = silc_client_get_clients_local(client, conn, nickname,
/** Wait for command reply */
silc_fsm_next(fsm, silc_client_command_reply_wait);
/** Wait for command reply */
silc_fsm_next(fsm, silc_client_command_reply_wait);
/** Wait for command reply */
silc_fsm_next(fsm, silc_client_command_reply_wait);
/** Wait for command reply */
silc_fsm_next(fsm, silc_client_command_reply_wait);
/** Wait for command reply */
silc_fsm_next(fsm, silc_client_command_reply_wait);
/** Wait for command reply */
silc_fsm_next(fsm, silc_client_command_reply_wait);
/** Wait for command reply */
silc_fsm_next(fsm, silc_client_command_reply_wait);
/** Wait for command reply */
silc_fsm_next(fsm, silc_client_command_reply_wait);
/** Wait for command reply */
silc_fsm_next(fsm, silc_client_command_reply_wait);
/** Wait for command reply */
silc_fsm_next(fsm, silc_client_command_reply_wait);
"Usage: /MOTD [<server>]");
COMMAND_ERROR((cmd->argc < 1 ? SILC_STATUS_ERR_NOT_ENOUGH_PARAMS :
SILC_STATUS_ERR_TOO_MANY_PARAMS));
"Usage: /MOTD [<server>]");
COMMAND_ERROR((cmd->argc < 1 ? SILC_STATUS_ERR_NOT_ENOUGH_PARAMS :
SILC_STATUS_ERR_TOO_MANY_PARAMS));
/** Wait for command reply */
silc_fsm_next(fsm, silc_client_command_reply_wait);
/** Wait for command reply */
silc_fsm_next(fsm, silc_client_command_reply_wait);
SAY(conn->client, conn, SILC_CLIENT_MESSAGE_INFO,
"Usage: /UMODE +|-<modes>");
COMMAND_ERROR(SILC_STATUS_ERR_NOT_ENOUGH_PARAMS);
SAY(conn->client, conn, SILC_CLIENT_MESSAGE_INFO,
"Usage: /UMODE +|-<modes>");
COMMAND_ERROR(SILC_STATUS_ERR_NOT_ENOUGH_PARAMS);
/** Wait for command reply */
silc_fsm_next(fsm, silc_client_command_reply_wait);
/** Wait for command reply */
silc_fsm_next(fsm, silc_client_command_reply_wait);
/** Wait for command reply */
silc_fsm_next(fsm, silc_client_command_reply_wait);
/** Wait for command reply */
silc_fsm_next(fsm, silc_client_command_reply_wait);
/** Wait for command reply */
silc_fsm_next(fsm, silc_client_command_reply_wait);
/** Wait for command reply */
silc_fsm_next(fsm, silc_client_command_reply_wait);
out:
silc_client_unref_channel(client, conn, channel);
silc_client_list_free(client, conn, clients);
silc_free(nickname);
out:
silc_client_unref_channel(client, conn, channel);
silc_client_list_free(client, conn, clients);
silc_free(nickname);
/** Wait for command reply */
silc_fsm_next(fsm, silc_client_command_reply_wait);
/** Wait for command reply */
silc_fsm_next(fsm, silc_client_command_reply_wait);
/** Wait for command reply */
silc_fsm_next(fsm, silc_client_command_reply_wait);
/** Wait for command reply */
silc_fsm_next(fsm, silc_client_command_reply_wait);
SAY(conn->client, conn, SILC_CLIENT_MESSAGE_INFO,
"Usage: /OPER <username> [-pubkey]");
COMMAND_ERROR(SILC_STATUS_ERR_NOT_ENOUGH_PARAMS);
SAY(conn->client, conn, SILC_CLIENT_MESSAGE_INFO,
"Usage: /OPER <username> [-pubkey]");
COMMAND_ERROR(SILC_STATUS_ERR_NOT_ENOUGH_PARAMS);
cmd->context = oper;
SILC_FSM_CALL(conn->client->internal->
ops->ask_passphrase(conn->client, conn,
cmd->context = oper;
SILC_FSM_CALL(conn->client->internal->
ops->ask_passphrase(conn->client, conn,
SAY(conn->client, conn, SILC_CLIENT_MESSAGE_INFO,
"Usage: /SILCOPER <username> [-pubkey]");
COMMAND_ERROR(SILC_STATUS_ERR_NOT_ENOUGH_PARAMS);
SAY(conn->client, conn, SILC_CLIENT_MESSAGE_INFO,
"Usage: /SILCOPER <username> [-pubkey]");
COMMAND_ERROR(SILC_STATUS_ERR_NOT_ENOUGH_PARAMS);
cmd->context = oper;
SILC_FSM_CALL(conn->client->internal->
ops->ask_passphrase(conn->client, conn,
cmd->context = oper;
SILC_FSM_CALL(conn->client->internal->
ops->ask_passphrase(conn->client, conn,
/** Wait for command reply */
silc_fsm_next(fsm, silc_client_command_reply_wait);
/** Wait for command reply */
silc_fsm_next(fsm, silc_client_command_reply_wait);
/** Wait for command reply */
silc_fsm_next(fsm, silc_client_command_reply_wait);
/** Wait for command reply */
silc_fsm_next(fsm, silc_client_command_reply_wait);
/** Wait for command reply */
silc_fsm_next(fsm, silc_client_command_reply_wait);
/** Wait for command reply */
silc_fsm_next(fsm, silc_client_command_reply_wait);
/** Wait for command reply */
silc_fsm_next(fsm, silc_client_command_reply_wait);
/** Wait for command reply */
silc_fsm_next(fsm, silc_client_command_reply_wait);
/** Wait for command reply */
silc_fsm_next(fsm, silc_client_command_reply_wait);
/** Wait for command reply */
silc_fsm_next(fsm, silc_client_command_reply_wait);
client->internal->ops->say(client, conn, SILC_CLIENT_MESSAGE_INFO,
"Usage: /GETKEY <nickname or server name>");
COMMAND_ERROR(SILC_STATUS_ERR_NOT_ENOUGH_PARAMS);
client->internal->ops->say(client, conn, SILC_CLIENT_MESSAGE_INFO,
"Usage: /GETKEY <nickname or server name>");
COMMAND_ERROR(SILC_STATUS_ERR_NOT_ENOUGH_PARAMS);
}
/* Parse the typed nickname. */
if (!silc_client_nickname_parse(client, conn, cmd->argv[1], &nickname)) {
COMMAND_ERROR(SILC_STATUS_ERR_RESOURCE_LIMIT);
}
/* Parse the typed nickname. */
if (!silc_client_nickname_parse(client, conn, cmd->argv[1], &nickname)) {
COMMAND_ERROR(SILC_STATUS_ERR_RESOURCE_LIMIT);
errors are handled in the resolving callback. */
COMMAND_ERROR(SILC_STATUS_ERR_NO_SUCH_NICK);
COMMAND_ERROR(SILC_STATUS_ERR_NO_SUCH_SERVER);
errors are handled in the resolving callback. */
COMMAND_ERROR(SILC_STATUS_ERR_NO_SUCH_NICK);
COMMAND_ERROR(SILC_STATUS_ERR_NO_SUCH_SERVER);
/** Wait for command reply */
silc_fsm_next(fsm, silc_client_command_reply_wait);
/** Wait for command reply */
silc_fsm_next(fsm, silc_client_command_reply_wait);
SAY(conn->client, conn, SILC_CLIENT_MESSAGE_INFO,
"Usage: /SERVICE [<service name>] [-pubkey]");
COMMAND_ERROR(SILC_STATUS_ERR_NOT_ENOUGH_PARAMS);
SAY(conn->client, conn, SILC_CLIENT_MESSAGE_INFO,
"Usage: /SERVICE [<service name>] [-pubkey]");
COMMAND_ERROR(SILC_STATUS_ERR_NOT_ENOUGH_PARAMS);
/** Wait for command reply */
silc_fsm_next(fsm, silc_client_command_reply_wait);
/** Wait for command reply */
silc_fsm_next(fsm, silc_client_command_reply_wait);