From b931783123a42fd024f56e4760ebf92a35931475 Mon Sep 17 00:00:00 2001 From: moneromooo Date: Mon, 22 Dec 2014 13:38:48 +0000 Subject: [PATCH] Make admins a configuration list --- tipbot.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/tipbot.py b/tipbot.py index 5a943fc..0a63e28 100644 --- a/tipbot.py +++ b/tipbot.py @@ -32,6 +32,8 @@ withdrawal_fee = 10000000000 min_withdraw_amount = 2*withdrawal_fee withdraw_disabled = False +admins = ["moneromooo", "moneromoo"] + userstable=dict() calltable=dict() last_wallet_update_time = None @@ -130,11 +132,7 @@ def CheckRegistered(nick,ifyes,yesdata,ifno,nodata): SendTo('nickserv', "ACC " + nick) def IsAdmin(nick): - if nick == "moneromooo": - return True - if nick == "moneromoo": - return True - return False + return nick in admins def CheckAdmin(nick,ifyes,yesdata,ifno,nodata): if not IsAdmin(nick):