Fixed change nickname may cause occupants duplicated issue

User A joined chatroom, then user B joined chatroom. If user A changed his nickname, it may cause duplicated occupants.
Merge pull request #384 from kaojohnny/dev

Fixed change nickname may cause occupants duplicated issue