Commit graph

4 commits

Author SHA1 Message Date
Michael King
4cb2617324 Added extrapolated "name_exists" function.
Note that this can move, I just put it where it made
the most sense.

Code that checks for account names and aliases can
now be replaced with (assuming this is imported):

functions_user.name_exists("username")

If there is an alias match or an account match, it
will return True.
2009-01-13 07:21:41 +00:00
Greg Taylor
d58f4eb517 Looking through our command code after a long hiatus, I realized that it was pretty much awful. So here's part 1 of the command interpreter overhaul.
- The command handler has been drastically simplified. We were doing way too much processing in the handler that should have been done in the individual command functions themselves.
- The 'cdat' dict we were previously passing around has been replaced with a Command object that has useful methods for performing some of the parsing command functions will probably want to do from time to time.
- All commands were updated to use the new Command object, tested, and cleaned up in general.
- A lot of formatting was cleaned up.
- A lot of previously un-found bugs and limitations were fixed.
- The 'page' command has been broken out into its own file, since it's going to have a number of functions that would otherwise clutter commands/general.py.

Expect a commit (probably later today) that will clean up the second half of cmdhandler.py.
2008-12-14 20:21:02 +00:00
Greg Taylor
a954069776 Finished moving stuff around, things should be in mostly working order now. 2008-06-15 20:31:25 +00:00
Greg Taylor
fd264667b8 Whoops. Broken for a few minutes. 2008-06-15 20:19:08 +00:00