about summary refs log tree commit diff stats
path: root/src/profanity.c
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2012-12-02 01:29:42 +0000
committerJames Booth <boothj5@gmail.com>2012-12-02 01:29:42 +0000
commit6826a66f8506d763d30bcf8e54147efbf5e8050c (patch)
tree8179299e486473f12312123815d37dd5b6c80528 /src/profanity.c
parent30e4786180047d6b8fc97ee3c4e18b62f8b0d6b0 (diff)
downloadprofani-tty-6826a66f8506d763d30bcf8e54147efbf5e8050c.tar.gz
Moved logins to accounts module
Diffstat (limited to 'src/profanity.c')
-rw-r--r--src/profanity.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/profanity.c b/src/profanity.c
index 8f4befb1..92ceae44 100644
--- a/src/profanity.c
+++ b/src/profanity.c
@@ -28,6 +28,7 @@
 
 #include <glib.h>
 
+#include "accounts.h"
 #include "chat_log.h"
 #include "chat_session.h"
 #include "command.h"
@@ -198,7 +199,7 @@ prof_handle_login_success(const char *jid)
     win_current_page_off();
     status_bar_print_message(jid);
     status_bar_refresh();
-    prefs_add_login(jid);
+    accounts_add_login(jid);
 }
 
 void
@@ -508,6 +509,7 @@ _init(const int disable_tls, char *log_level)
     log_info("Starting Profanity (%s)...", PACKAGE_VERSION);
     chat_log_init();
     prefs_load();
+    accounts_load();
     gchar *theme = prefs_get_theme();
     theme_load(theme);
     g_free(theme);