Strip spaces from commands when declining access

This commit is contained in:
Firepup Sixfifty 2023-11-07 20:18:33 -06:00
parent 1f7b6d9863
commit c4a9815a9c
Signed by: Firepup650
GPG key ID: 7C92E2ABBBFAB9BA

2
bot.py
View file

@ -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