Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/logbot.py
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-03-19 13:21:42 +0100
committerErich Eckner <git@eckner.net>2018-03-19 13:21:42 +0100
commit1c2479d9fa037995d9175c3643efe35a9c694443 (patch)
tree979d6425ec1d2407beca9828cce2f3307d516eb9 /logbot.py
parent16a23005d4cd2ded3152daceca0b39bc7079873e (diff)
logbot.py: wait 10sec for registration to be applied before joining the channels
Diffstat (limited to 'logbot.py')
-rwxr-xr-xlogbot.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/logbot.py b/logbot.py
index 8ae09cb..1178008 100755
--- a/logbot.py
+++ b/logbot.py
@@ -38,7 +38,7 @@ import os
import ftplib
import sys
import itertools
-from time import strftime
+from time import strftime,sleep
try:
from datetime import datetime
from pytz import timezone
@@ -366,6 +366,7 @@ class Logbot(SingleServerIRCBot):
"""Join channels after successful connection"""
if self.nick_pass:
c.privmsg("nickserv", "identify %s" % self.nick_pass)
+ sleep(10)
for chan in self.chans:
c.join(chan)