This is a rather big update, encompassing quite a few areas that will lead to what I hope will be a very easy to modify yet flexible codebase. New stuff includes:
* A simple command parser that supports MUX/MUSH-style switches. * Global command alias support. Aliases can be edited via web interface or SQL. * A new SQL-based configuration system that can be edited directly or via a Django web interface. * The listen port is now configurable via aforementioned config system instead of hard-wired as it was previously. Yick :)
This commit is contained in:
parent
fa21a35fe4
commit
aabce6e7e3
4 changed files with 82 additions and 45 deletions
|
|
@ -38,12 +38,11 @@ class PlayerSession(async_chat):
|
|||
def found_terminator(self):
|
||||
"""
|
||||
Any line return indicates a command for the purpose of a MUD. So we take
|
||||
the user input, split it up by spaces into a list, and pass it to our
|
||||
command handler.
|
||||
the user input and pass it to our command handler.
|
||||
"""
|
||||
line = (''.join(self.data))
|
||||
line = line.strip('\r')
|
||||
uinput = line.split(' ')
|
||||
uinput = line
|
||||
self.data = []
|
||||
|
||||
# Increment our user's command counter.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue