Add ability to script commands after connect
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user