diff mcabber/src/jabglue.c @ 1023:94d9a3cbb211

Remove useless message Doing /info was noisy with a server without private storage support.
author Mikael Berthe <mikael@lilotux.net>
date Sat, 18 Nov 2006 15:48:49 +0100
parents 4c8d7b558e83
children 8a395c2cafc4
line wrap: on
line diff
--- a/mcabber/src/jabglue.c	Sat Nov 18 10:44:58 2006 +0100
+++ b/mcabber/src/jabglue.c	Sat Nov 18 15:48:49 2006 +0100
@@ -1285,10 +1285,11 @@
   return sl_notes;
 }
 
-//  jb_get_storage_rosternotes(barejid)
+//  jb_get_storage_rosternotes(barejid, silent)
 // Return the annotation associated with this jid.
+// If silent is TRUE, no warning is displayed when rosternotes is disabled
 // The caller should g_free the string and structure after use.
-struct annotation *jb_get_storage_rosternotes(const char *barejid)
+struct annotation *jb_get_storage_rosternotes(const char *barejid, int silent)
 {
   xmlnode x;
 
@@ -1297,8 +1298,9 @@
 
   // If we have no rosternotes, probably the server doesn't support them.
   if (!rosternotes) {
-    scr_LogPrint(LPRINT_LOGNORM,
-                 "Sorry, your server doesn't seem to support private storage.");
+    if (!silent)
+      scr_LogPrint(LPRINT_LOGNORM, "Sorry, "
+                   "your server doesn't seem to support private storage.");
     return NULL;
   }