diff options
author | James Booth <boothj5@gmail.com> | 2014-09-28 22:09:20 +0100 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2014-09-28 22:09:20 +0100 |
commit | d25d6b450201ee58f41e55d57da093eafa25e20c (patch) | |
tree | 0ec326336d9d1e6972034a01a86d7100dd9ed848 /src/xmpp/bookmark.c | |
parent | 41b49cb5d6507636070c4d65f0e3f006c1ac9952 (diff) | |
download | profani-tty-d25d6b450201ee58f41e55d57da093eafa25e20c.tar.gz |
Tidied muc module
Diffstat (limited to 'src/xmpp/bookmark.c')
-rw-r--r-- | src/xmpp/bookmark.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/xmpp/bookmark.c b/src/xmpp/bookmark.c index 395bf102..b5d495a6 100644 --- a/src/xmpp/bookmark.c +++ b/src/xmpp/bookmark.c @@ -178,15 +178,15 @@ _bookmark_join(const char *jid) char *account_name = jabber_get_account_name(); ProfAccount *account = accounts_get_account(account_name); Bookmark *item = found->data; - if (!muc_room_is_active(item->jid)) { + if (!muc_active(item->jid)) { char *nick = item->nick; if (nick == NULL) { nick = account->muc_nick; } presence_join_room(item->jid, nick, item->password); - muc_join_room(item->jid, nick, item->password, FALSE); + muc_join(item->jid, nick, item->password, FALSE); account_free(account); - } else if (muc_get_roster_received(item->jid)) { + } else if (muc_roster_complete(item->jid)) { ui_room_join(item->jid, TRUE); } return TRUE; @@ -343,9 +343,9 @@ _bookmark_handle_result(xmpp_conn_t * const conn, log_debug("Autojoin %s with nick=%s", jid, name); room_jid = jid_create_from_bare_and_resource(jid, name); - if (!muc_room_is_active(room_jid->barejid)) { + if (!muc_active(room_jid->barejid)) { presence_join_room(jid, name, password); - muc_join_room(jid, name, password, TRUE); + muc_join(jid, name, password, TRUE); } jid_destroy(room_jid); account_free(account); |