Handle self leaving room in private wins

This commit is contained in:
James Booth
2016-02-03 00:11:38 +00:00
parent 292c9cf454
commit 77e819e81a
6 changed files with 154 additions and 0 deletions

View File

@@ -185,6 +185,8 @@ cl_ev_send_priv_msg(ProfPrivateWin *privwin, const char *const msg)
{
if (privwin->occupant_offline) {
privwin_message_occupant_offline(privwin);
} else if (privwin->room_left) {
privwin_message_left_room(privwin);
} else {
message_send_private(privwin->fulljid, msg);
privwin_outgoing_msg(privwin, msg);