Fix wrong commands being triggered if they have the same letters at the beginning
This commit is contained in:
parent
5d73682a71
commit
def4891008
|
@ -41,7 +41,7 @@ def fokabotResponse(fro, chan, message):
|
|||
"""
|
||||
for i in fokabotCommands.commands:
|
||||
# Loop though all commands
|
||||
if message.strip().startswith(i["trigger"]):
|
||||
if message.strip().startswith("{} ".format(i["trigger"])):
|
||||
# message has triggered a command
|
||||
|
||||
# Make sure the user has right permissions
|
||||
|
|
Loading…
Reference in New Issue
Block a user