diff options
author | James Booth <boothj5@gmail.com> | 2013-01-21 22:57:56 +0000 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2013-01-21 22:57:56 +0000 |
commit | 42e7f47175e29e26ccb8f8b01bf65e2ee2d1470f (patch) | |
tree | 7395d0961b7df0a68e08971a755b0e7e73bfe486 | |
parent | 5ef1bee55b2af23ee8e62338d4073e1957fd4a82 (diff) | |
parent | 61095b3e414981a3e6848f2b5867e136776fd933 (diff) | |
download | profani-tty-42e7f47175e29e26ccb8f8b01bf65e2ee2d1470f.tar.gz |
Merge branch 'master' into caps
-rw-r--r-- | src/windows.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/windows.c b/src/windows.c index 06fab840..f281be24 100644 --- a/src/windows.c +++ b/src/windows.c @@ -725,7 +725,16 @@ win_new_chat_win(const char * const to) // create new window if (win_index == NUM_WINS) { - win_index = _new_prof_win(to, WIN_CHAT); + Jid *jid = jid_create(to); + + if (muc_room_is_active(jid)) { + win_index = _new_prof_win(to, WIN_PRIVATE); + } else { + win_index = _new_prof_win(to, WIN_CHAT); + } + + jid_destroy(jid); + win = windows[win_index]->win; if (prefs_get_chlog() && prefs_get_history()) { |