updates.
authorPekka Riikonen <priikone@silcnet.org>
Thu, 23 May 2002 15:10:50 +0000 (15:10 +0000)
committerPekka Riikonen <priikone@silcnet.org>
Thu, 23 May 2002 15:10:50 +0000 (15:10 +0000)
CHANGES
apps/irssi/src/fe-common/silc/module-formats.c
apps/irssi/src/fe-common/silc/module-formats.h
apps/irssi/src/silc/core/client_ops.c

diff --git a/CHANGES b/CHANGES
index f43cd96d4fc0e646753c86896f225aabf7cd192d..1b82b5d85579d8113e0d6fb054fff71eb0b8ab2b 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -11,6 +11,10 @@ Thu May 23 12:00:14 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
          timeout, and not directly, so that other notifys can be
          retrieved too.  Affected file lib/silcclient/client_notify.c.
 
+       * Display notification about data messages that cannot be
+         displayed.  Affected files irssi/src/silc/core/client_ops.c,
+         irssi/src/fe-common/silc/module-formats.[ch].
+
 Sun May 19 18:59:00 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
 
        * Fixed the CHANNEL_CHANGE notify handling in client libary
index fc1d95530bfc8660381c52f7f583ac70ff66069a..385643de6f9a4e1efd2e55b1f543f31dffdbb1fe 100644 (file)
@@ -124,6 +124,7 @@ FORMAT_REC fecommon_silc_formats[] = {
        { "watch_killed", "Watch: {nick $0} was killed from the network", 1, { 0 } },
        { "watch_umode_change", "Watch: {nick $0} is now {hilight $1}", 2, { 0, 0 } },
        { "watch_nick_change", "Watch: {nick $0} changed nickname to {nick $1}", 2, { 0, 0 } },
+       { "message_data", "{nick $0} sent \"{hilight $1}\" data message: cannot display", 2, { 0, 0 } },
 
        /* File transfer messages */
        { NULL, "FileTransfer", 0 },
index b3c613eb0fbbdf7ea0f507037f188f634b6c2ce9..5d84c79dd024a7af59aaa6e55c3f5a6c4bf9c657 100644 (file)
@@ -118,6 +118,7 @@ enum {
   SILCTXT_WATCH_KILLED,
   SILCTXT_WATCH_UMODE_CHANGE,
   SILCTXT_WATCH_NICK_CHANGE,
+  SILCTXT_MESSAGE_DATA,
 
   SILCTXT_FILL_5,
 
index 6fca4be77b433bd3dc5524596ef2f96c95484eee..1dc966874e99f0bcf5be62c29621d33db4e4a038 100644 (file)
@@ -152,6 +152,9 @@ void silc_channel_message(SilcClient client, SilcClientConnection conn,
       /* 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 ? "[<unknown>]" : nick->nick, type);
       message = NULL;
     }
   }
@@ -209,6 +212,10 @@ void silc_private_message(SilcClient client, SilcClientConnection conn,
       /* 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 : "[<unknown>]",
+                        type);
       message = NULL;
     }
   }