summaryrefslogtreecommitdiffstats
path: root/Reaktor/IRC
diff options
context:
space:
mode:
authorlassulus <lassulus@googlemail.com>2014-01-14 00:03:26 +0100
committerlassulus <lassulus@googlemail.com>2014-01-14 00:03:26 +0100
commit62f4edbe223adf266980ba2039747b833fb7b8eb (patch)
tree9542a4cdf8eab0229285d75717bcf85323b4e789 /Reaktor/IRC
parentd9735e0b96e3875d5866f582de56c7fb8543ff48 (diff)
reaktor: send JOIN after MOTD
Diffstat (limited to 'Reaktor/IRC')
-rw-r--r--Reaktor/IRC/ircasy.py13
1 files changed, 9 insertions, 4 deletions
diff --git a/Reaktor/IRC/ircasy.py b/Reaktor/IRC/ircasy.py
index 6b7567cc..4b800d45 100644
--- a/Reaktor/IRC/ircasy.py
+++ b/Reaktor/IRC/ircasy.py
@@ -109,6 +109,9 @@ class asybot(asychat):
self.nickname = nickname + str(int + 1)
self.handle_connect()
+ elif command == '376':
+ self.on_welcome(prefix, command, params, rest)
+
self.reset_alarm()
def push(self, message):
@@ -131,7 +134,6 @@ class asybot(asychat):
self.push('NICK %s' % self.nickname)
self.push('USER %s %s %s :%s' %
(self.username, self.hostname, self.server, self.realname))
- self.push('JOIN %s' % ','.join(self.channels))
def handle_disconnect(self):
if self.retry:
@@ -139,9 +141,6 @@ class asybot(asychat):
else:
self.log.error('No retry set, giving up')
- def on_privmsg(self, prefix, command, params, rest):
- pass
-
def PRIVMSG(self, target, text):
for line in self.wrapper.wrap(text):
msg = 'PRIVMSG %s :%s' % (','.join(target), line)
@@ -151,3 +150,9 @@ class asybot(asychat):
def ME(self, target, text):
self.PRIVMSG(target, ('ACTION ' + text + ''))
+
+ def on_privmsg(self, prefix, command, params, rest):
+ pass
+
+ def on_welcome(self, prefix, command, params, rest):
+ self.push('JOIN %s' % ','.join(self.channels))