changeset 1244:f7b9a00c512d

Make room bookark more verbose, and remove duplicate bookmarks
author Mikael Berthe <mikael@lilotux.net>
date Mon, 18 Jun 2007 21:12:35 +0200
parents 7d6b99b9f14d
children e6ddd19956eb
files mcabber/src/jabglue.c
diffstat 1 files changed, 6 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/mcabber/src/jabglue.c	Mon Jun 18 19:35:39 2007 +0200
+++ b/mcabber/src/jabglue.c	Mon Jun 18 21:12:35 2007 +0200
@@ -1341,7 +1341,7 @@
 
   // If we have no bookmarks, probably the server doesn't support them.
   if (!bookmarks) {
-    scr_LogPrint(LPRINT_LOGNORM,
+    scr_LogPrint(LPRINT_NORMAL,
                  "Sorry, your server doesn't seem to support private storage.");
     return;
   }
@@ -1362,7 +1362,8 @@
         // create a new one.
         xmlnode_hide(x);
         changed = TRUE;
-        break;
+        if (!name)
+          scr_LogPrint(LPRINT_LOGNORM, "Deleting bookmark...");
       }
     }
   }
@@ -1378,6 +1379,7 @@
     if (passwd)
       xmlnode_insert_cdata(xmlnode_insert_tag(x, "password"), passwd, -1);
     changed = TRUE;
+    scr_LogPrint(LPRINT_LOGNORM, "Updating bookmarks...");
   }
 
   if (!changed)
@@ -1451,7 +1453,7 @@
   // If we have no rosternotes, probably the server doesn't support them.
   if (!rosternotes) {
     if (!silent)
-      scr_LogPrint(LPRINT_LOGNORM, "Sorry, "
+      scr_LogPrint(LPRINT_NORMAL, "Sorry, "
                    "your server doesn't seem to support private storage.");
     return NULL;
   }
@@ -1487,7 +1489,7 @@
 
   // If we have no rosternotes, probably the server doesn't support them.
   if (!rosternotes) {
-    scr_LogPrint(LPRINT_LOGNORM,
+    scr_LogPrint(LPRINT_NORMAL,
                  "Sorry, your server doesn't seem to support private storage.");
     return;
   }