private messages are not really commands, they are message packets,
however, on user interface it is convenient to show them as commands
as that is the common way of sending private messages (like in IRC). */
-/* XXX supports only one destination */
SILC_CLIENT_LCMD_FUNC(msg)
{
client_entry->nickname);;
if (i->type == 1) {
- if (!silc_client_ask_yes_no(client,
- "Would you like to use the key with private messages (y/n)? ")) {
- silc_say(client, conn, "You can set the key material into use later by giving /KEY msg set command");
- curr_key = key;
- break;
- }
-
/* Set the private key for this client */
silc_client_del_private_message_key(client, conn, client_entry);
silc_client_add_private_message_key_ske(client, conn, client_entry,
- NULL, key);
+ NULL, key, FALSE);
silc_say(client, conn, "The private messages with the %s are now protected with the private key", client_entry->nickname);
silc_ske_free_key_material(key);
}
if (cmd->argv[2][0] == '*') {
if (!conn->current_channel) {
- cmd->client->ops->say(cmd->client, conn, "You are not on any channel");
+ silc_say(cmd->client, conn, "You are not on any channel");
goto out;
}
name = conn->current_channel->channel_name;
if (curr_key && type == 1 && client_entry) {
silc_client_del_private_message_key(client, conn, client_entry);
silc_client_add_private_message_key_ske(client, conn, client_entry,
- NULL, curr_key);
+ NULL, curr_key, FALSE);
goto out;
}
}
cmd->argv[5], cmd->argv[4],
cmd->argv_lens[4],
(cmd->argv[4][0] == '*' ?
- TRUE : FALSE));
+ TRUE : FALSE), FALSE);
else
silc_client_add_private_message_key(client, conn, client_entry,
NULL, cmd->argv[4],
cmd->argv_lens[4],
(cmd->argv[4][0] == '*' ?
- TRUE : FALSE));
+ TRUE : FALSE), FALSE);
/* Send the key to the remote client so that it starts using it
too. */
if (cmd->argv[1][0] == '*') {
if (!conn->current_channel) {
- cmd->client->ops->say(cmd->client, conn, "You are not on any channel");
+ silc_say(cmd->client, conn, "You are not on any channel");
goto out;
}
name = conn->current_channel->channel_name;
if (cmd->argv[1][0] == '*') {
if (!conn->current_channel) {
- cmd->client->ops->say(cmd->client, conn, "You are not on any channel");
+ silc_say(cmd->client, conn, "You are not on any channel");
goto out;
}
name = conn->current_channel->channel_name;