diff mcabber/mcabber/xmpp.c @ 1976:e6beab22099b

Do not add items to roster with commands /move and /rename (Hermitifier) Do not add items to roster with commands /move and /rename. For MUC, store relevant information in the bookmark.
author Mikael Berthe <mikael@lilotux.net>
date Thu, 24 Mar 2011 20:53:08 +0100
parents 45f0f0f60656
children 6febc7d1f760
line wrap: on
line diff
--- a/mcabber/mcabber/xmpp.c	Sat Mar 19 20:07:56 2011 +0100
+++ b/mcabber/mcabber/xmpp.c	Thu Mar 24 20:53:08 2011 +0100
@@ -2137,7 +2137,7 @@
 void xmpp_set_storage_bookmark(const char *roomid, const char *name,
                                const char *nick, const char *passwd,
                                int autojoin, enum room_printstatus pstatus,
-                               enum room_autowhois awhois)
+                               enum room_autowhois awhois, const char *group)
 {
   LmMessageNode *x;
   bool changed = FALSE;
@@ -2188,6 +2188,8 @@
       lm_message_node_set_attributes(x, "autowhois",
                                      (awhois == autowhois_on) ? "1" : "0",
                                      NULL);
+    if (group)
+      lm_message_node_add_child(x, "group", group);
     changed = TRUE;
     scr_LogPrint(LPRINT_LOGNORM, "Updating bookmarks...");
   }