From 9464decc868132fa1f7eb426f400129f18d779b5 Mon Sep 17 00:00:00 2001 From: moneromooo Date: Mon, 22 Dec 2014 20:50:47 +0000 Subject: [PATCH] Make sure we don't try to rain on nobody if the no-rain list is thick --- tipbot.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tipbot.py b/tipbot.py index 083e09e..6482235 100644 --- a/tipbot.py +++ b/tipbot.py @@ -308,6 +308,9 @@ def Rain(nick,data): everyone = True else: everyone = False + if users == 0: + SendTo(sendto, "Nobody eligible for rain") + return if units < users: SendTo(sendto, "This would mean not even a tacoshi per nick") return