# HG changeset patch # User Mikael Berthe # Date 1475339807 -7200 # Node ID dc1b123d63d56a8e02a83c7c88e08e1840cff888 # Parent 1bb9002801e574006ae9894599ee4c79fc4e282d Improve message when bookmarks are updated Thanks to Leonard Witte for the suggestion. diff -r 1bb9002801e5 -r dc1b123d63d5 mcabber/mcabber/xmpp.c --- a/mcabber/mcabber/xmpp.c Sun Sep 25 15:07:24 2016 +0200 +++ b/mcabber/mcabber/xmpp.c Sat Oct 01 18:36:47 2016 +0200 @@ -2119,7 +2119,7 @@ // send_storage(store) // Send the node "store" to update the server. -// Note: the sender should check we're online. +// Note: the caller should check we're online. void send_storage(LmMessageNode *store) { LmMessage *iq; @@ -2333,17 +2333,18 @@ if (group && *group) lm_message_node_add_child(x, "group", group); changed = TRUE; - scr_LogPrint(LPRINT_LOGNORM, "Updating bookmarks..."); } if (!changed) return; - if (xmpp_is_online()) + if (xmpp_is_online()) { send_storage(bookmarks); - else + scr_LogPrint(LPRINT_LOGNORM, "Bookmarks updated."); + } else { scr_LogPrint(LPRINT_LOGNORM, "Warning: you're not connected to the server."); + } } static struct annotation *parse_storage_rosternote(LmMessageNode *notenode)