Fix admin checking for quit and repeat commands
This commit is contained in:
parent
d4c88f6025
commit
7662a35ac1
4
bot.py
4
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:
|
||||
|
|
Loading…
Reference in New Issue