mozilla/BrowserQuest — pull request #75 by cjsaylor (2012-04-06 15:55:37+00:00)
Title: World chat and framework for chat commands

I've updated the client CHAT command to parse the message for special commands.

The one command added is a "/w " which instead of creating a chat bubble to the local zone, it sends the message as a notification to the world.

However, to accomplish this, on the server side I had to change the player chat listener from sending broadcastToZone, to just broadcast. I'm not 100% sure of the ramifications of doing this, and if there is a better way (or cleaner) please let me know and I will update the pull request.