paritybot

A fun IRC bot.
git clone https://git.sr.ht/~jbauer/paritybot
Log | Files | Refs | README | LICENSE

commit 7662a35ac1f21b8c646e32a89532b95bc201d546
parent d4c88f6025200ce35b0cca59cb5a2bc540fe01fe
Author: Jake Bauer <jbauer@paritybit.ca>
Date:   Mon, 18 Oct 2021 03:45:48 -0400

Fix admin checking for quit and repeat commands

Diffstat:
Mbot.py | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/bot.py b/bot.py @@ -193,7 +193,7 @@ class Bot: self.ircsock.close() def quit (self, incoming): - if self.is_admin(get_user(incoming)): + if self.is_admin(self.get_user(incoming)): self.send_privmsg(self.get_channel(incoming), "*sigh* alright then...") self.disconnect() self.save_config() @@ -251,7 +251,7 @@ class Bot: self.send_privmsg(self.get_channel(incoming), message) def command_repeatsetup(self, incoming): - if not self.is_admin(incoming): + if not self.is_admin(self.get_user(incoming)): message = "You don't have permission to use this command." else: try: