User:Roderic/commandhandler

From The Mana World

These diffs add a commandhandler class and moves all that command parsing code out of the chat window. It adds a listusers and listchannels command, changes the /register command to /channel and lets you set up channels with passwords and announcements, and adds some helper functions to the chat window. When you join a channel, it'll now give you the announcement, and list the users in that channel. David, I had to change ChatHandler::handleListChannelUsersResponse to actually list the users. There was some guild related stuff in it, so it might break something on that front, though i didn't see any crashes. Finally, I haven't had to add files to subversion before, so are there any other properties i should set, and did I set the id tag properly?

Apart from setting svn:keywords to at least Id (but we generally set it to "Author Date Id Revision"), please set svn:eol-style to "native" in order to avoid problems with line endings. --Bjørn 20:04, 8 June 2008 (CEST)

So, I'll commit this if noone has any critique for it. Also, I still didn't hear anything about how people feel about moving away from /admin and just having forward slashes for all commands.

At least you know I also don't see the point of /admin. :-) --Bjørn 20:05, 8 June 2008 (CEST)

http://www.ccs.neu.edu/home/roderic/tmw/commands.diff

http://www.ccs.neu.edu/home/roderic/tmw/server.diff