mirror of
https://github.com/sanderfoobar/ircradio.git
synced 2024-12-01 16:29:23 +01:00
enforce prefix
This commit is contained in:
parent
826392b1c8
commit
50f788a5d0
@ -339,7 +339,9 @@ async def message(nick, target, message, **kwargs):
|
|||||||
target = nick
|
target = nick
|
||||||
|
|
||||||
msg = message
|
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):]
|
msg = msg[len(settings.irc_command_prefix):]
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
Loading…
Reference in New Issue
Block a user