From 904a5a81cfcc19c7029f0a961cfb97f7d1a2fe9f Mon Sep 17 00:00:00 2001 From: James Booth Date: Thu, 15 Oct 2015 01:19:24 +0100 Subject: Add ability to script commands after connect --- src/xmpp/connection.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/xmpp') diff --git a/src/xmpp/connection.c b/src/xmpp/connection.c index ba694bfd..2b7db8be 100644 --- a/src/xmpp/connection.c +++ b/src/xmpp/connection.c @@ -482,6 +482,8 @@ _connection_handler(xmpp_conn_t * const conn, // login success if (status == XMPP_CONN_CONNECT) { log_debug("Connection handler: XMPP_CONN_CONNECT"); + jabber_conn.conn_status = JABBER_CONNECTED; + int secured = xmpp_conn_is_secured(jabber_conn.conn); // logged in with account @@ -520,8 +522,6 @@ _connection_handler(xmpp_conn_t * const conn, iq_enable_carbons(); } - jabber_conn.conn_status = JABBER_CONNECTED; - if (prefs_get_reconnect() != 0) { if (reconnect_timer) { g_timer_destroy(reconnect_timer); -- cgit 1.4.1-2-gfad0