mozilla/BrowserQuest — pull request #76 by cjsaylor (2012-04-06 21:55:52+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 player, it creates a static chat bubble off to the side with a different color.

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.