about summary refs log tree commit diff stats
path: root/src/profanity.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/profanity.c')
-rw-r--r--src/profanity.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/profanity.c b/src/profanity.c
index 913f3350..09bd77d8 100644
--- a/src/profanity.c
+++ b/src/profanity.c
@@ -261,6 +261,9 @@ void
 prof_handle_login_account_success(char *account_name)
 {
     ProfAccount *account = accounts_get_account(account_name);
+#ifdef HAVE_LIBOTR
+    otr_account_load(account);
+#endif
     resource_presence_t resource_presence = accounts_get_login_presence(account->name);
     contact_presence_t contact_presence = contact_presence_from_resource_presence(resource_presence);
     cons_show_login_success(account);