initial support of autojoin for MUC
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user