From: Pekka Riikonen Date: Thu, 24 Oct 2002 15:54:27 +0000 (+0000) Subject: Added missing code; unprintable mime data must be notified. X-Git-Tag: silc.server.0.9.8~52 X-Git-Url: http://git.silcnet.org/gitweb/?p=silc.git;a=commitdiff_plain;h=669053f2cf4cccec5c60207a2fbe72be47778df3 Added missing code; unprintable mime data must be notified. --- diff --git a/apps/irssi/src/silc/core/client_ops.c b/apps/irssi/src/silc/core/client_ops.c index 491f776d..448fb085 100644 --- a/apps/irssi/src/silc/core/client_ops.c +++ b/apps/irssi/src/silc/core/client_ops.c @@ -157,6 +157,11 @@ void silc_channel_message(SilcClient client, SilcClientConnection conn, !strstr(type, "text/vnd")) { /* It is something textual, display it */ message = (const unsigned char *)data; + } else { + printformat_module("fe-common/silc", server, channel->channel_name, + MSGLEVEL_CRAP, SILCTXT_MESSAGE_DATA, + nick == NULL ? "[]" : nick->nick, type); + message = NULL; } } @@ -235,6 +240,12 @@ void silc_private_message(SilcClient client, SilcClientConnection conn, !strstr(type, "text/vnd")) { /* It is something textual, display it */ message = (const unsigned char *)data; + } else { + printformat_module("fe-common/silc", server, NULL, + MSGLEVEL_CRAP, SILCTXT_MESSAGE_DATA, + sender->nickname ? sender->nickname : "[]", + type); + message = NULL; } }