Refactored muc_room_is_active to only take room, rather than full jid

This commit is contained in:
James Booth
2014-03-08 21:20:26 +00:00
parent dd1ee18c72
commit b177250f47
11 changed files with 19 additions and 27 deletions

View File

@@ -930,7 +930,7 @@ _ui_new_chat_win(const char * const to)
if (window == NULL) {
Jid *jid = jid_create(to);
if (muc_room_is_active(jid)) {
if (muc_room_is_active(jid->barejid)) {
window = wins_new(to, WIN_PRIVATE);
} else {
window = wins_new(to, WIN_CHAT);
@@ -1037,7 +1037,7 @@ _ui_outgoing_msg(const char * const from, const char * const to,
if (window == NULL) {
Jid *jid = jid_create(to);
if (muc_room_is_active(jid)) {
if (muc_room_is_active(jid->barejid)) {
window = wins_new(to, WIN_PRIVATE);
} else {
window = wins_new(to, WIN_CHAT);