summaryrefslogtreecommitdiff
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
parent16a23005d4cd2ded3152daceca0b39bc7079873e (diff)
downloadlogbot-1c2479d9fa037995d9175c3643efe35a9c694443.tar.xz
logbot.py: wait 10sec for registration to be applied before joining the channels
-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)