mirror of
https://github.com/profanity-im/profanity.git
synced 2025-01-03 14:57:42 -05:00
Override global OTR policy with account OTR policy
This commit is contained in:
parent
e8d84abb46
commit
6a38d57a0a
@ -519,6 +519,14 @@ _otr_get_their_fingerprint(const char * const recipient)
|
||||
static char *
|
||||
_otr_get_policy(const char * const recipient)
|
||||
{
|
||||
// check account setting
|
||||
ProfAccount *account = accounts_get_account(jabber_get_account_name());
|
||||
if (account->otr_policy != NULL) {
|
||||
account_free(account);
|
||||
return account->otr_policy;
|
||||
}
|
||||
account_free(account);
|
||||
|
||||
// check global setting
|
||||
return prefs_get_string(PREF_OTR_POLICY);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user