diff mcabber/src/jabglue.c @ 1435:9bf7f3ddff10

Do not send a groupchat-style message when changing a MUC room topic Esp. bad when the permission is denied... (Reported by bb)
author Mikael Berthe <mikael@lilotux.net>
date Sun, 24 Feb 2008 13:41:36 +0100
parents a64778f5f26b
children fd09c95bc2b5
line wrap: on
line diff
--- a/mcabber/src/jabglue.c	Sat Feb 23 12:00:56 2008 +0100
+++ b/mcabber/src/jabglue.c	Sun Feb 24 13:41:36 2008 +0100
@@ -601,7 +601,11 @@
   if (encrypted)
     *encrypted = 0;
 
-  if (!online) return;
+  if (!online)
+    return;
+
+  if (!text && type == ROSTER_TYPE_USER)
+    return;
 
   if (type_overwrite)
     strtype = type_overwrite;