test
This commit is contained in:
parent
fb5c0a88ed
commit
4db23124d2
@ -10,15 +10,15 @@ class Users():
|
||||
|
||||
"""Bot Priviledges"""
|
||||
|
||||
def has_bot_privilege(self, nick, channelstr, privilege):
|
||||
def has_bot_privilege(self, nick, privilege):
|
||||
|
||||
if privilege == "ADMIN":
|
||||
if privilege.upper() == "ADMIN":
|
||||
if nick in self.is_bot_admin():
|
||||
return True
|
||||
elif nick in self.is_bot_owner():
|
||||
return True
|
||||
|
||||
elif privilege == "OWNER":
|
||||
elif privilege.upper() == "OWNER":
|
||||
if nick in self.is_bot_owner():
|
||||
return True
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user