silc-client: don't show GETKEY public key verification twice
authorPekka Riikonen <priikone@silcnet.org>
Sat, 10 May 2014 11:56:44 +0000 (14:56 +0300)
committerPekka Riikonen <priikone@silcnet.org>
Sat, 10 May 2014 11:56:44 +0000 (14:56 +0300)
apps/irssi/src/silc/core/client_ops.c

index af27ee566bbeb742553e1f7c9ed5647a0260c8cd..a87eff9f02c1cbc9ff2d074599f1dfa582a81d45 100644 (file)
@@ -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);