diff mcabber/src/commands.c @ 1379:74b7621537d7

MUC: Store room settings (print_status, auto_whois) in private storage
author Mikael Berthe <mikael@lilotux.net>
date Thu, 29 Nov 2007 20:54:38 +0100
parents cd9182f0b5c7
children 40095d413da9
line wrap: on
line diff
--- a/mcabber/src/commands.c	Wed Nov 28 22:42:48 2007 +0100
+++ b/mcabber/src/commands.c	Thu Nov 29 20:54:38 2007 +0100
@@ -2590,6 +2590,8 @@
 {
   const char *roomid;
   const char *name = NULL, *nick = NULL;
+  enum room_autowhois autowhois = 0;
+  enum room_printstatus printstatus = 0;
   enum { bm_add = 0, bm_del = 1 } action = 0;
   int autojoin = 0;
 
@@ -2617,9 +2619,12 @@
   if (action == bm_add) {
     name = buddy_getname(bud);
     nick = buddy_getnickname(bud);
+    printstatus = buddy_getprintstatus(bud);
+    autowhois   = buddy_getautowhois(bud);
   }
 
-  jb_set_storage_bookmark(roomid, name, nick, NULL, autojoin);
+  jb_set_storage_bookmark(roomid, name, nick, NULL, autojoin,
+                          printstatus, autowhois);
 }
 
 static void display_all_bookmarks(void)