Add ability to script commands after connect

This commit is contained in:
James Booth
2015-10-15 01:19:24 +01:00
parent fb60a755e5
commit 904a5a81cf
18 changed files with 230 additions and 25 deletions

View File

@@ -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);