mirror of
https://git.wownero.com/wownero/tippero.git
synced 2024-08-15 00:33:14 +00:00
Make admins a configuration list
This commit is contained in:
parent
936a25841b
commit
b931783123
1 changed files with 3 additions and 5 deletions
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue