+Wed Jun 19 16:01:51 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
+
+ * Fixed a bug in Irssi SILC client to close the connection
+ properly when disconnecting from server. Affected file
+ irssi/src/silc/core/client_ops.c.
+
Tue Jun 18 17:14:52 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
* When authenticating as founder during JOIN command, check
static bool silc_irssi_debug_print(char *file, char *function, int line,
char *message, void *context)
{
- printtext(NULL, NULL, MSGLEVEL_CLIENTNOTICE,
+ printtext(NULL, NULL, MSGLEVEL_CLIENTCRAP,
"DEBUG: %s:%d: %s", function, line, message);
return TRUE;
}
static bool silc_log_misc(SilcLogType type, char *message, void *context)
{
- printtext(NULL, NULL, MSGLEVEL_CLIENTCRAP, "%s", message);
+ printtext(NULL, NULL, MSGLEVEL_CLIENTCRAP, "%s: %s",
+ (type == SILC_LOG_INFO ? "[Info]" :
+ type == SILC_LOG_WARNING ? "[Warning]" : "[Error]"), message);
return TRUE;
}
silc_debug = TRUE;
silc_debug_hexdump = TRUE;
silc_log_set_debug_string(arg);
- silc_log_set_callback(SILC_LOG_INFO, silc_log_misc, NULL);
- silc_log_set_callback(SILC_LOG_WARNING, silc_log_misc, NULL);
- silc_log_set_callback(SILC_LOG_ERROR, silc_log_misc, NULL);
- silc_log_set_callback(SILC_LOG_FATAL, silc_log_misc, NULL);
#ifndef SILC_DEBUG
fprintf(stdout,
"Run-time debugging is not enabled. To enable it recompile\n"
return;
}
+ silc_log_set_callback(SILC_LOG_INFO, silc_log_misc, NULL);
+ silc_log_set_callback(SILC_LOG_WARNING, silc_log_misc, NULL);
+ silc_log_set_callback(SILC_LOG_ERROR, silc_log_misc, NULL);
+ silc_log_set_callback(SILC_LOG_FATAL, silc_log_misc, NULL);
+
/* Register SILC to the irssi */
rec = g_new0(CHAT_PROTOCOL_REC, 1);
rec->name = "SILC";
SilcClientConnection conn;
int i;
+ SILC_LOG_DEBUG(("Adding new connection to %s:%d", hostname, port));
+
conn = silc_calloc(1, sizeof(*conn));
/* Initialize ID caches */
{
int i;
+ SILC_LOG_DEBUG(("Deleting connection %s%d", conn->remote_host,
+ conn->remote_port));
+
for (i = 0; i < client->internal->conns_count; i++)
if (client->internal->conns[i] == conn) {