From: Pekka Riikonen Date: Sat, 10 May 2014 11:56:44 +0000 (+0300) Subject: silc-client: don't show GETKEY public key verification twice X-Git-Tag: silc.client.1.1.11~5 X-Git-Url: http://git.silcnet.org/gitweb/?a=commitdiff_plain;h=725af813951d3c77b38c52ff02bf43bf892370ea;p=silc.git silc-client: don't show GETKEY public key verification twice --- diff --git a/apps/irssi/src/silc/core/client_ops.c b/apps/irssi/src/silc/core/client_ops.c index af27ee56..a87eff9f 100644 --- a/apps/irssi/src/silc/core/client_ops.c +++ b/apps/irssi/src/silc/core/client_ops.c @@ -1434,15 +1434,8 @@ void silc_getkey_cb(SilcBool success, void *context) silc_pubkey = silc_pkcs_get_context(SILC_PKCS_SILC, public_key); if (success) { - if (getkey->id_type == SILC_ID_CLIENT) - printformat_module("fe-common/silc", NULL, NULL, - MSGLEVEL_CRAP, SILCTXT_PUBKEY_VERIFIED_CLIENT, - name, - silc_pubkey->identifier.realname ? - silc_pubkey->identifier.realname : "", - silc_pubkey->identifier.email ? - silc_pubkey->identifier.email : ""); - else + /* Client's verification notice was showed in verify_internal() */ + if (getkey->id_type != SILC_ID_CLIENT) printformat_module("fe-common/silc", NULL, NULL, MSGLEVEL_CRAP, SILCTXT_PUBKEY_VERIFIED, entity, name);