projects
/
silc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
e8b3711
)
Added missing code; unprintable mime data must be notified.
author
Pekka Riikonen
<priikone@silcnet.org>
Thu, 24 Oct 2002 15:54:27 +0000
(15:54 +0000)
committer
Pekka Riikonen
<priikone@silcnet.org>
Thu, 24 Oct 2002 15:54:27 +0000
(15:54 +0000)
apps/irssi/src/silc/core/client_ops.c
patch
|
blob
|
history
diff --git
a/apps/irssi/src/silc/core/client_ops.c
b/apps/irssi/src/silc/core/client_ops.c
index 491f776d377e5a29696d648e565151c50397ee94..448fb08525f89209b3b37857079ecdfa59f81169 100644
(file)
--- 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;
!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 ? "[<unknown>]" : 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;
!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 : "[<unknown>]",
+ type);
+ message = NULL;
}
}
}
}