ironbane/IronbaneServer — pull request #212 by bsparks (2013-10-12 06:36:42+00:00)
Title: Rooms

this is to break the chatHandler out into node based module system as well as add some more advanced chat features to the game. please code review & test.

Notes: all the chat commands are now split into separate files in the /src/server/game/chat/commands folder. they are dynamically loaded and will use the script name as the command name, unless a name attribute is provided to the config (see listRooms.js);

When a user signs in they will be added to several "rooms" to receive chat messages. Every user joins a room with the name of their character for PM. There is also: guests, admins, editors, mods, and __nick__ (for nick :+1: ) and zone_x rooms for each zone.

When using the chatbox in the UI just typing will actually call /say to the "global" room. You can also type /say if you want. Also, you can send messages to a particular room (and therefore user) using ```@``` for example ```@Rigadoo hey what's up man?``` will PM me. You can also use the other non name based rooms to communicate with a group. If you don't want to use the @ syntax, ```/say:Rigadoo yo``` will also work. If the target has spaces in the name, use double quotes. ```@"Your Mother" hey mom```

There are other commands, ```/who ```, ```/join ```, ```/leave ```, ```/rooms```. And more, check the code for details. (perhaps docs later).

Please test, any other questions, please ask.