mcabber/src/commands.c
changeset 1379 74b7621537d7
parent 1377 cd9182f0b5c7
child 1381 40095d413da9
--- 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)