1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-12-04 14:46:46 -05:00

Fixed bug when opening private chat without message

This commit is contained in:
James Booth 2013-01-21 22:46:33 +00:00
parent f3fcc892c3
commit 61095b3e41

View File

@ -721,7 +721,16 @@ win_new_chat_win(const char * const to)
// create new window // create new window
if (win_index == NUM_WINS) { if (win_index == NUM_WINS) {
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); win_index = _new_prof_win(to, WIN_CHAT);
}
jid_destroy(jid);
win = windows[win_index]->win; win = windows[win_index]->win;
if (prefs_get_chlog() && prefs_get_history()) { if (prefs_get_chlog() && prefs_get_history()) {