initial support of autojoin for MUC

This commit is contained in:
Dmitry Podgorny
2013-06-30 18:59:38 +03:00
parent e12ede6cd8
commit 2837c4054f
7 changed files with 204 additions and 0 deletions

View File

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