about summary refs log tree commit diff stats
path: root/src/ui
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2014-03-08 21:20:26 +0000
committerJames Booth <boothj5@gmail.com>2014-03-08 21:20:26 +0000
commitb177250f47f5599943b6772aed43de49834147e2 (patch)
tree822ad8a0b4e38c84b1e004922e1a8e0308d809ac /src/ui
parentdd1ee18c72268839de8af64de5eb07c5a2499ff2 (diff)
downloadprofani-tty-b177250f47f5599943b6772aed43de49834147e2.tar.gz
Refactored muc_room_is_active to only take room, rather than full jid
Diffstat (limited to 'src/ui')
-rw-r--r--src/ui/core.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ui/core.c b/src/ui/core.c
index ef8ace73..8bc17e4e 100644
--- a/src/ui/core.c
+++ b/src/ui/core.c
@@ -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);