mirror of
https://git.wownero.com/wownero/tippero.git
synced 2024-08-15 00:33:14 +00:00
Add an optional list of nicks not to rain upon
This commit is contained in:
parent
adff17d735
commit
55981cf192
1 changed files with 5 additions and 0 deletions
|
@ -35,6 +35,9 @@ withdraw_disabled = False
|
||||||
|
|
||||||
admins = ["moneromooo", "moneromoo"]
|
admins = ["moneromooo", "moneromoo"]
|
||||||
|
|
||||||
|
# list of nicks to ignore for rains - bots, trolls, etc
|
||||||
|
no_rain_to_nicks = []
|
||||||
|
|
||||||
userstable=dict()
|
userstable=dict()
|
||||||
calltable=dict()
|
calltable=dict()
|
||||||
last_wallet_update_time = None
|
last_wallet_update_time = None
|
||||||
|
@ -298,6 +301,8 @@ def Rain(nick,data):
|
||||||
|
|
||||||
userlist = userstable[chan][:]
|
userlist = userstable[chan][:]
|
||||||
userlist.remove(nick)
|
userlist.remove(nick)
|
||||||
|
for n in no_rain_to_nicks:
|
||||||
|
userlist.remove(n)
|
||||||
if users == None or users > len(userlist):
|
if users == None or users > len(userlist):
|
||||||
users = len(userlist)
|
users = len(userlist)
|
||||||
everyone = True
|
everyone = True
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue