Fix: chat sound can play on your own messages
If you send a message and switch window or tabs quickly, it is possible to get a notification sound for your own message. This commit fixes this.
The variable username
now contains memberData.name
. The condition
rawname != username
must be true for a notification sound to play. I
also removed an unused player
variable from some of the files.