clients = silc_client_get_clients_local(silc_client, server->conn,
rec->nick, FALSE);
if (!clients) {
- printtext(NULL, NULL, MSGLEVEL_CLIENTERROR,
- "%s: There is no such client (did you mean %s?)", rec->nick,
- target->nickname);
+ if (strchr(rec->nick, '@') && target->server)
+ printtext(NULL, NULL, MSGLEVEL_CLIENTERROR,
+ "%s: There is no such client (did you mean %s@%s?)", rec->nick,
+ target->nickname, target->server);
+ else
+ printtext(NULL, NULL, MSGLEVEL_CLIENTERROR,
+ "%s: There is no such client (did you mean %s?)", rec->nick,
+ target->nickname);
goto out;
}
/* Try to read detached session data and use it if found. */
file = silc_get_session_filename(server);
- params.detach_data = silc_file_readfile(file, ¶ms.detach_data_len);
+ params.detach_data = silc_file_readfile(file, ¶ms.detach_data_len, NULL);
if (params.detach_data)
params.detach_data[params.detach_data_len] = 0;
if (params.detach_data)