mirror of
https://git.wownero.com/dsc/ircradio.git
synced 2024-08-15 01:03:15 +00:00
enforce prefix
This commit is contained in:
parent
826392b1c8
commit
50f788a5d0
1 changed files with 4 additions and 2 deletions
|
@ -339,8 +339,10 @@ async def message(nick, target, message, **kwargs):
|
|||
target = nick
|
||||
|
||||
msg = message
|
||||
if msg.startswith(settings.irc_command_prefix):
|
||||
msg = msg[len(settings.irc_command_prefix):]
|
||||
if not msg.startswith(settings.irc_command_prefix):
|
||||
return
|
||||
|
||||
msg = msg[len(settings.irc_command_prefix):]
|
||||
|
||||
try:
|
||||
if nick not in settings.irc_admins_nicknames:
|
||||
|
|
Loading…
Reference in a new issue