enforce prefix

This commit is contained in:
dsc 2021-06-17 04:41:29 +02:00
parent 826392b1c8
commit 50f788a5d0

View file

@ -339,7 +339,9 @@ async def message(nick, target, message, **kwargs):
target = nick
msg = message
if msg.startswith(settings.irc_command_prefix):
if not msg.startswith(settings.irc_command_prefix):
return
msg = msg[len(settings.irc_command_prefix):]
try: