updates.
authorPekka Riikonen <priikone@silcnet.org>
Sun, 20 Jan 2002 12:25:03 +0000 (12:25 +0000)
committerPekka Riikonen <priikone@silcnet.org>
Sun, 20 Jan 2002 12:25:03 +0000 (12:25 +0000)
apps/irssi/src/silc/core/clientutil.c
apps/silcer/src/SilcerMainDlg.cc

index 622fb762465da3ecc5ef2cba67152bb618b45e76..bd5594844df71947ae51bf7b23b455e461de630f 100644 (file)
@@ -2,14 +2,13 @@
 
   client.c
 
-  Author: Pekka Riikonen <priikone@poseidon.pspt.fi>
+  Author: Pekka Riikonen <priikone@silcnet.org>
 
-  Copyright (C) 1997 - 2000 Pekka Riikonen
+  Copyright (C) 1997 - 2002 Pekka Riikonen
 
   This program is free software; you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
-  the Free Software Foundation; either version 2 of the License, or
-  (at your option) any later version.
+  the Free Software Foundation; version 2 of the License.
   
   This program is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
@@ -597,6 +596,7 @@ int silc_client_show_key(char *keyfile)
   fflush(stdout);
 
   silc_free(fingerprint);
+  silc_free(babbleprint);
   silc_free(pk);
   silc_pkcs_public_key_free(public_key);
   silc_pkcs_free_identifier(ident);
index 7cc91c3f76c55e45656b9361151829ab41dee402..fb3dd9359bd53fc959b7c7cd3035903019f39f47 100644 (file)
@@ -109,7 +109,7 @@ gint SilcerMainDlg::InputBoxKeyPress(GdkEventKey *key)
 
     if (msg.at(0) == '/') {
       // Command
-      SilcClientCommand *cmd;
+      SilcClientCommand cmd;
       SilcClientCommandContext ctx;
       char *tmpcmd;
       uint32 argc = 0;
@@ -118,7 +118,7 @@ gint SilcerMainDlg::InputBoxKeyPress(GdkEventKey *key)
 
       // Parse arguments
       tmpcmd = parse_command(msg.c_str());
-      cmd = silc_client_command_find((const char *)tmpcmd);
+      cmd = silc_client_command_find(silc_client, (const char *)tmpcmd);
       silc_free(tmpcmd);
       if (cmd == NULL)
        break;
@@ -136,7 +136,7 @@ gint SilcerMainDlg::InputBoxKeyPress(GdkEventKey *key)
       ctx->argv_types = argv_types;
       
       // Execute the command
-      (*cmd->cb)(ctx, NULL);
+      silc_client_command_call(cmd, ctx);
     } else {
       // Channel message
       if (silc_client_conn->current_channel) {