about summary refs log tree commit diff stats
path: root/src/xmpp
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2015-10-14 00:23:12 +0100
committerJames Booth <boothj5@gmail.com>2015-10-14 00:29:22 +0100
commitc9165ef9d20d1cc96f7edada2a875bc4835b63fb (patch)
tree65f02b8586d0a547f279cf794f4e3fb0043247fe /src/xmpp
parentecbcecea7d0e20bd7ff12ead58cc4e735c7ee98b (diff)
downloadprofani-tty-c9165ef9d20d1cc96f7edada2a875bc4835b63fb.tar.gz
Title bar TLS indicator
Issue #616
Diffstat (limited to 'src/xmpp')
-rw-r--r--src/xmpp/connection.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/xmpp/connection.c b/src/xmpp/connection.c
index 5ad5e108..ba694bfd 100644
--- a/src/xmpp/connection.c
+++ b/src/xmpp/connection.c
@@ -482,11 +482,12 @@ _connection_handler(xmpp_conn_t * const conn,
     // login success
     if (status == XMPP_CONN_CONNECT) {
         log_debug("Connection handler: XMPP_CONN_CONNECT");
+        int secured = xmpp_conn_is_secured(jabber_conn.conn);
 
         // logged in with account
         if (saved_account.name) {
             log_debug("Connection handler: logged in with account name: %s", saved_account.name);
-            sv_ev_login_account_success(saved_account.name);
+            sv_ev_login_account_success(saved_account.name, secured);
 
         // logged in without account, use details to create new account
         } else {
@@ -494,7 +495,7 @@ _connection_handler(xmpp_conn_t * const conn,
             accounts_add(saved_details.name, saved_details.altdomain, saved_details.port);
             accounts_set_jid(saved_details.name, saved_details.jid);
 
-            sv_ev_login_account_success(saved_details.name);
+            sv_ev_login_account_success(saved_details.name, secured);
             saved_account.name = strdup(saved_details.name);
             saved_account.passwd = strdup(saved_details.passwd);