diff --git a/tools/decorators.py b/tools/decorators.py index 4e80d13..9b32207 100644 --- a/tools/decorators.py +++ b/tools/decorators.py @@ -27,7 +27,7 @@ def generate(fdict, permissions=True, **kwargs): else: nick = "" cloak = "" - if len(largs) > 3 and largs[2]: + if len(largs) > 3 and largs[2] and largs[2][0] == "#": chan = largs[2] else: chan = ""