From 55981cf192e959851cf4c72a2abe2f3ada817fca Mon Sep 17 00:00:00 2001 From: moneromooo Date: Mon, 22 Dec 2014 20:48:11 +0000 Subject: [PATCH] Add an optional list of nicks not to rain upon --- tipbot.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tipbot.py b/tipbot.py index 5e0db17..083e09e 100644 --- a/tipbot.py +++ b/tipbot.py @@ -35,6 +35,9 @@ withdraw_disabled = False admins = ["moneromooo", "moneromoo"] +# list of nicks to ignore for rains - bots, trolls, etc +no_rain_to_nicks = [] + userstable=dict() calltable=dict() last_wallet_update_time = None @@ -298,6 +301,8 @@ def Rain(nick,data): userlist = userstable[chan][:] userlist.remove(nick) + for n in no_rain_to_nicks: + userlist.remove(n) if users == None or users > len(userlist): users = len(userlist) everyone = True