comparison 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
comparison
equal deleted inserted replaced
1022:4c8d7b558e83 1023:94d9a3cbb211
1283 sl_notes = g_slist_append(sl_notes, note); 1283 sl_notes = g_slist_append(sl_notes, note);
1284 } 1284 }
1285 return sl_notes; 1285 return sl_notes;
1286 } 1286 }
1287 1287
1288 // jb_get_storage_rosternotes(barejid) 1288 // jb_get_storage_rosternotes(barejid, silent)
1289 // Return the annotation associated with this jid. 1289 // Return the annotation associated with this jid.
1290 // If silent is TRUE, no warning is displayed when rosternotes is disabled
1290 // The caller should g_free the string and structure after use. 1291 // The caller should g_free the string and structure after use.
1291 struct annotation *jb_get_storage_rosternotes(const char *barejid) 1292 struct annotation *jb_get_storage_rosternotes(const char *barejid, int silent)
1292 { 1293 {
1293 xmlnode x; 1294 xmlnode x;
1294 1295
1295 if (!barejid) 1296 if (!barejid)
1296 return NULL; 1297 return NULL;
1297 1298
1298 // If we have no rosternotes, probably the server doesn't support them. 1299 // If we have no rosternotes, probably the server doesn't support them.
1299 if (!rosternotes) { 1300 if (!rosternotes) {
1300 scr_LogPrint(LPRINT_LOGNORM, 1301 if (!silent)
1301 "Sorry, your server doesn't seem to support private storage."); 1302 scr_LogPrint(LPRINT_LOGNORM, "Sorry, "
1303 "your server doesn't seem to support private storage.");
1302 return NULL; 1304 return NULL;
1303 } 1305 }
1304 1306
1305 // Walk through the storage rosternotes tags 1307 // Walk through the storage rosternotes tags
1306 x = xmlnode_get_firstchild(rosternotes); 1308 x = xmlnode_get_firstchild(rosternotes);