changeset 1688:51481414ca65

Fix blocking muc messages (reported by Че2) block_unsubscribed, if set, blocks all groupchat messages
author Myhailo Danylenko <isbear@ukrpost.net>
date Fri, 05 Feb 2010 23:32:56 +0200
parents fc67e1c7a5d4
children b8f9481dd0fe
files mcabber/mcabber/xmpp.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mcabber/mcabber/xmpp.c	Wed Feb 03 06:34:46 2010 +0100
+++ b/mcabber/mcabber/xmpp.c	Fri Feb 05 23:32:56 2010 +0200
@@ -1128,7 +1128,7 @@
   // System messages (from our server) are allowed.
   if ((!settings_opt_get_int("block_unsubscribed") ||
        (roster_getsubscription(bjid) & sub_from) ||
-       (type == LM_MESSAGE_SUB_TYPE_CHAT)) ||
+       (type == LM_MESSAGE_SUB_TYPE_GROUPCHAT)) ||
       ((s = settings_opt_get("server")) != NULL && !strcasecmp(bjid, s))) {
     gchar *fullbody = NULL;
     guint encrypted;