fixed bug for spamming join/leave.

Fixed bug.