From: Pekka Riikonen Date: Sun, 20 Jan 2002 12:25:03 +0000 (+0000) Subject: updates. X-Git-Tag: silc.client.0.7.3~5 X-Git-Url: http://git.silcnet.org/gitweb/?a=commitdiff_plain;h=41aed880ce560384a7eab18cbbef60b0a2735375;p=silc.git updates. --- diff --git a/apps/irssi/src/silc/core/clientutil.c b/apps/irssi/src/silc/core/clientutil.c index 622fb762..bd559484 100644 --- a/apps/irssi/src/silc/core/clientutil.c +++ b/apps/irssi/src/silc/core/clientutil.c @@ -2,14 +2,13 @@ client.c - Author: Pekka Riikonen + Author: Pekka Riikonen - 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); diff --git a/apps/silcer/src/SilcerMainDlg.cc b/apps/silcer/src/SilcerMainDlg.cc index 7cc91c3f..fb3dd935 100644 --- a/apps/silcer/src/SilcerMainDlg.cc +++ b/apps/silcer/src/SilcerMainDlg.cc @@ -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) {