Add another reboot command (#17)
Closes #15 Add another reboot command3ea8908bc6
Make the hot dog happy, because happy hot dog = yummy hot dog15c18193a9
\ de-f it74cbcdc7a2
Make the flaming hot dog even happier, almost ready to eat!6aecc9e8f2
Reviewed-on: https://git.amcforum.wiki/Firepup650/fire-ircbot/pulls/17 Reviewed-by: Firepup Sixfifty <firepyp650@gmail.com> Co-authored-by: 9pfs <9pfs@amcforum.wiki> Co-committed-by: 9pfs <9pfs@amcforum.wiki>
This commit is contained in:
parent
f29de567c0
commit
e494008775
1 changed files with 4 additions and 1 deletions
|
@ -451,7 +451,10 @@ def main():
|
|||
):
|
||||
sendraw(message.split(" ", 1)[1])
|
||||
elif (
|
||||
mfind(message, [f"reboot {rebt}", f"reboot {gblrebt}"], False)
|
||||
(
|
||||
mfind(message, [f"reboot {rebt}", f"reboot {gblrebt}"], False)
|
||||
or mfind(message, ["restart", "reboot"])
|
||||
)
|
||||
and name.lower() in adminnames
|
||||
):
|
||||
send("QUIT :Rebooting\n")
|
||||
|
|
Loading…
Reference in a new issue