1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-09-22 19:45:54 -04:00

Fix nickname change conflicts

fixes #242
This commit is contained in:
James Booth 2013-09-22 14:47:17 +01:00
parent d70245c887
commit ab5eadc559

View File

@ -198,7 +198,9 @@ prof_handle_error_message(const char *from, const char *err_msg)
}
// remove the room from muc
Jid *room_jid = jid_create(from);
muc_leave_room(room_jid->barejid);
if (!muc_get_roster_received(room_jid->barejid)) {
muc_leave_room(room_jid->barejid);
}
jid_destroy(room_jid);
} else {