Implement registering (untested), fix auth stuff and possibly break stuff. Fixes #44

This commit is contained in:
Tulir Asokan
2018-03-07 22:05:53 +02:00
parent cf9a1f3afb
commit 8d1de218a1
4 changed files with 74 additions and 25 deletions
+2 -1
View File
@@ -81,12 +81,13 @@ class CommandHandler:
async def handle(self, room, sender, command, args, is_management, is_portal):
evt = CommandEvent(self, room, sender, command, args,
is_management, is_portal)
orig_command = command
command = command.lower()
try:
command = command_handlers[command]
except KeyError:
if sender.command_status and "next" in sender.command_status:
args.insert(0, command)
args.insert(0, orig_command)
evt.command = ""
command = sender.command_status["next"]
else: