Warn when we get flood protection notices

This commit is contained in:
moneromooo 2014-12-31 11:56:37 +00:00
parent c79300f588
commit 9d4895c8d4
1 changed files with 2 additions and 0 deletions

View File

@ -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")