From 669053f2cf4cccec5c60207a2fbe72be47778df3 Mon Sep 17 00:00:00 2001 From: Pekka Riikonen Date: Thu, 24 Oct 2002 15:54:27 +0000 Subject: [PATCH] Added missing code; unprintable mime data must be notified. --- apps/irssi/src/silc/core/client_ops.c | 11 +++++++++++ 1 file changed, 11 insertions(+) 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; } } -- 2.24.0