diff options
Diffstat (limited to 'src/xmpp/connection.c')
-rw-r--r-- | src/xmpp/connection.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/xmpp/connection.c b/src/xmpp/connection.c index 85ddfa45..600e813a 100644 --- a/src/xmpp/connection.c +++ b/src/xmpp/connection.c @@ -33,6 +33,7 @@ #include "log.h" #include "muc.h" #include "profanity.h" +#include "xmpp/bookmark.h" #include "xmpp/capabilities.h" #include "xmpp/connection.h" #include "xmpp/iq.h" @@ -231,6 +232,19 @@ jabber_set_autoping(const int seconds) } } +int +jabber_get_id(void) +{ + static int xmpp_id; + + ++xmpp_id; + if (xmpp_id < 0) { + xmpp_id = 1; + } + + return xmpp_id; +} + GList * jabber_get_available_resources(void) { @@ -494,6 +508,7 @@ _connection_handler(xmpp_conn_t * const conn, } roster_request(); + bookmark_request(); jabber_conn.conn_status = JABBER_CONNECTED; if (prefs_get_reconnect() != 0) { |