Fixed public key saving in WHOIS -details. Get user public key
[silc.git] / apps / irssi / src / silc / core / silc-channels.c
index 7a8797460528ff2b00e4b3dbe48d886e85773d64..5cc7807c42696df88002e5ba76a75af8ba47e9f0 100644 (file)
@@ -830,7 +830,7 @@ static void command_key(const char *data, SILC_SERVER_REC *server,
       silc_client_free_private_message_keys(keys, keys_count);
 
     } else if (type == 2) {
-      int k, len;
+      int len;
       char buf[1024];
 
       ckeys = silc_client_list_channel_private_keys(silc_client, conn,
@@ -1090,6 +1090,10 @@ void silc_list_key(const char *pub_filename, int verbose)
     printformat_module("fe-common/silc", NULL, NULL,
                         MSGLEVEL_CRAP, SILCTXT_LISTKEY_PUB_BITS,
                         (unsigned int)key_len);
+  if (ident->version && verbose)
+    printformat_module("fe-common/silc", NULL, NULL,
+                        MSGLEVEL_CRAP, SILCTXT_LISTKEY_PUB_VER,
+                        ident->version);
   if (ident->realname && (!is_server_key || verbose))
     printformat_module("fe-common/silc", NULL, NULL,
                        MSGLEVEL_CRAP, SILCTXT_LISTKEY_PUB_RN,