[Telepathy-commits] [telepathy-gabble/master] MUC: ignore non-error, non-echos from the MUC
Will Thompson
will.thompson at collabora.co.uk
Tue Feb 3 06:34:51 PST 2009
(It's not clear that they ever contain useful information, and we previously
suppressed them.)
---
src/muc-channel.c | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)
diff --git a/src/muc-channel.c b/src/muc-channel.c
index a076a97..0770787 100644
--- a/src/muc-channel.c
+++ b/src/muc-channel.c
@@ -2261,6 +2261,18 @@ _gabble_muc_channel_receive (GabbleMucChannel *chan,
* mutually exclusive.
*/
+ /* Ignore messages from the channel. The only such messages I have seen in
+ * practice have been on devel at conference.pidgin.im, which sends useful
+ * messages like "foo has set the subject to: ..." and "This room is not
+ * anonymous".
+ */
+ if (!is_echo && !is_error && sender_handle_type == TP_HANDLE_TYPE_ROOM)
+ {
+ NODE_DEBUG (msg->node, "ignoring message from muc");
+
+ return;
+ }
+
message = tp_message_new (base_conn, 2, 2);
/* Header common to normal message and delivery-echo */
--
1.5.6.5
More information about the telepathy-commits
mailing list