The /priority command now sets per account/status settings

This commit is contained in:
James Booth
2013-01-31 22:48:21 +00:00
parent e6596735c4
commit b397a8c53e
5 changed files with 70 additions and 39 deletions

View File

@@ -153,7 +153,8 @@ presence_update(jabber_presence_t presence_type, const char * const msg,
if (jabber_get_connection_status() != JABBER_CONNECTED)
return;
pri = prefs_get_priority();
pri = accounts_get_priority_for_presence_type(jabber_get_account_name(),
presence_type);
if (pri < JABBER_PRIORITY_MIN || pri > JABBER_PRIORITY_MAX)
pri = 0;