Clean up misc.py, add space support for cg key

This commit is contained in:
Dico200
2015-04-10 00:13:06 +02:00
parent 9a0767676c
commit d85b96f875
2 changed files with 1 additions and 33 deletions

View File

@@ -100,13 +100,12 @@ def on_chat(event):
@simplecommand("chatgroupkey",
aliases = ["cgkey"],
senderLimit = 0,
amax = 1,
helpNoargs = True,
helpSubcmd = True,
description = "Sets a key character for chatting to your chatgroup",
usage = "<key>")
def chatgroupkey_command(sender, command, label, args):
key = args[0]
key = " ".join(args)
uuid = uid(sender)
if key.lower() == "default" or key == cg_defaultkey:
del cg_keys[uuid]