Test for presence update when changing priority

This commit is contained in:
James Booth
2013-12-27 14:17:24 +00:00
parent 7a63cf2e22
commit 6d6bc67d5c
8 changed files with 91 additions and 2 deletions

View File

@@ -266,7 +266,8 @@ cmd_account(gchar **args, struct cmd_help_t help)
resource_presence_t last_presence = accounts_get_last_presence(connected_account);
if (presence_type == last_presence) {
presence_update(last_presence, jabber_get_presence_message(), 0);
char *message = jabber_get_presence_message();
presence_update(last_presence, message, 0);
}
}
cons_show("Updated %s priority for account %s: %s", property, account_name, value);