mirror of
https://github.com/SpiceBot/SpiceBot.git
synced 2026-11-10 21:50:59 -05:00
prerun
This commit is contained in:
parent
ce1f4cdbed
commit
600de15689
@ -38,6 +38,11 @@ def prerun(t_command_type='module', t_command_subtype=None):
|
||||
verify_channel(trigger)
|
||||
verify_user(bot, trigger)
|
||||
|
||||
# Stop here if not registered
|
||||
if bot.config.SpiceBot_regnick.regnick:
|
||||
if str(trigger.nick).lower() not in [x.lower() for x in botusers.dict["registered"]]:
|
||||
return
|
||||
|
||||
botcom = class_create('botcom')
|
||||
|
||||
if t_command_type == "nickname":
|
||||
@ -132,6 +137,11 @@ def prerun_query(t_command_type='module', t_command_subtype=None):
|
||||
verify_channel(trigger)
|
||||
verify_user(bot, trigger)
|
||||
|
||||
# Stop here if not registered
|
||||
if bot.config.SpiceBot_regnick.regnick:
|
||||
if str(trigger.nick).lower() not in [x.lower() for x in botusers.dict["registered"]]:
|
||||
return
|
||||
|
||||
botcom = class_create('botcom')
|
||||
|
||||
if t_command_type == "nickname":
|
||||
|
||||
Loading…
Reference in New Issue
Block a user