about summary refs log tree commit diff stats
path: root/src/otr
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2015-05-24 04:13:28 +0100
committerJames Booth <boothj5@gmail.com>2015-05-24 04:13:28 +0100
commit80665ea0514a6a9b93af7858a3db1467091f80df (patch)
tree4637310015e3389135f5edd46d767f28eea46f71 /src/otr
parent2241473ee62b7d5d60d20ef0c264e6080cbba8db (diff)
downloadprofani-tty-80665ea0514a6a9b93af7858a3db1467091f80df.tar.gz
Added rooms iq test
Diffstat (limited to 'src/otr')
-rw-r--r--src/otr/otr.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/otr/otr.c b/src/otr/otr.c
index 4d97cfb9..1f63c8f9 100644
--- a/src/otr/otr.c
+++ b/src/otr/otr.c
@@ -645,7 +645,8 @@ otr_get_their_fingerprint(const char * const recipient)
 prof_otrpolicy_t
 otr_get_policy(const char * const recipient)
 {
-    ProfAccount *account = accounts_get_account(jabber_get_account_name());
+    char *account_name = jabber_get_account_name();
+    ProfAccount *account = accounts_get_account(account_name);
     // check contact specific setting
     if (g_list_find_custom(account->otr_manual, recipient, (GCompareFunc)g_strcmp0)) {
         account_free(account);