From 9d4895c8d42bcbb8048aff90241afb7a519a6af1 Mon Sep 17 00:00:00 2001 From: moneromooo Date: Wed, 31 Dec 2014 11:56:37 +0000 Subject: [PATCH] Warn when we get flood protection notices --- tipbot/irc.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tipbot/irc.py b/tipbot/irc.py index 6d3f58e..443a1d1 100644 --- a/tipbot/irc.py +++ b/tipbot/irc.py @@ -302,6 +302,8 @@ def IRCLoop(on_idle,on_identified,on_command): #----------------------------- Actions -----------------------------------# try: if action == 'NOTICE': + if text.find ('throttled due to flooding') >= 0: + log_warn('Flood protection kicked in, outgoing messages lost') if who == "NickServ!NickServ@services.": #if text.find('Information on ') != -1: # ns_nick = text.split(' ')[2].strip("\002")