partially revert e652a8156c and readd time.sleep(1) delay between operations, irc3 flood settings do not appear to prevent the bot from flooding itself off :(

This commit is contained in:
Thomas Steen Rasmussen 2020-02-12 17:45:55 +01:00
parent 00af109e2f
commit 9d61e554c0

View file

@ -1,5 +1,6 @@
import logging
import re
import time
import irc3
from django.conf import settings
@ -309,6 +310,9 @@ class Plugin(object):
# also add autoinvite for this username
self.bot.mode(channel, "+I", "$a:%s" % username)
# add a delay so the bot doesn't flood itself off, irc3 antiflood settings do not help here, why?
time.sleep(1)
@irc3.extend
def fix_missing_acls(self):
"""