Strip spaces from commands when declining access
This commit is contained in:
parent
1f7b6d9863
commit
c4a9815a9c
1 changed files with 1 additions and 1 deletions
2
bot.py
2
bot.py
|
@ -271,7 +271,7 @@ class bot:
|
|||
cmds.data[cmd]["prefix"],
|
||||
):
|
||||
if ("admin" in cmds.data[cmd] and cmds.data[cmd]["admin"]) and name not in self.adminnames:
|
||||
self.msg(f"Sorry {name}, you don't have permission to use {cmd}.", chan)
|
||||
self.msg(f"Sorry {name}, you don't have permission to use {cmd.strip()}.", chan)
|
||||
else:
|
||||
cmds.call[cmd](self, chan, name, message)
|
||||
handled = True
|
||||
|
|
Loading…
Reference in a new issue