Mercurial > hg
changeset 2282:dc1b123d63d5
Improve message when bookmarks are updated
Thanks to Leonard Witte for the suggestion.
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Sat, 01 Oct 2016 18:36:47 +0200 |
parents | 1bb9002801e5 |
children | 1f5f708d58a6 |
files | mcabber/mcabber/xmpp.c |
diffstat | 1 files changed, 5 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- 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)