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
|
min_withdraw_amount = 2*withdrawal_fee
|
||||||
withdraw_disabled = False
|
withdraw_disabled = False
|
||||||
|
|
||||||
|
admins = ["moneromooo", "moneromoo"]
|
||||||
|
|
||||||
userstable=dict()
|
userstable=dict()
|
||||||
calltable=dict()
|
calltable=dict()
|
||||||
last_wallet_update_time = None
|
last_wallet_update_time = None
|
||||||
|
@ -130,11 +132,7 @@ def CheckRegistered(nick,ifyes,yesdata,ifno,nodata):
|
||||||
SendTo('nickserv', "ACC " + nick)
|
SendTo('nickserv', "ACC " + nick)
|
||||||
|
|
||||||
def IsAdmin(nick):
|
def IsAdmin(nick):
|
||||||
if nick == "moneromooo":
|
return nick in admins
|
||||||
return True
|
|
||||||
if nick == "moneromoo":
|
|
||||||
return True
|
|
||||||
return False
|
|
||||||
|
|
||||||
def CheckAdmin(nick,ifyes,yesdata,ifno,nodata):
|
def CheckAdmin(nick,ifyes,yesdata,ifno,nodata):
|
||||||
if not IsAdmin(nick):
|
if not IsAdmin(nick):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue