summaryrefslogtreecommitdiffstats
path: root/news
diff options
context:
space:
mode:
authorlassulus <lassulus@googlemail.com>2014-01-22 03:19:58 +0100
committerlassulus <lassulus@googlemail.com>2014-01-22 03:19:58 +0100
commit7c579f4692198045e9fe4d6957eaaa210df76c75 (patch)
treebd2970ddcb60622b12a0b621666a9732cb1168fc /news
parent37d5c80ab68f28b453aaf38fce8aa944e010d360 (diff)
news: add chan to channels on invite
Diffstat (limited to 'news')
-rw-r--r--news/newsbot.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/news/newsbot.py b/news/newsbot.py
index f1ab9ce5..40f2c385 100644
--- a/news/newsbot.py
+++ b/news/newsbot.py
@@ -39,6 +39,7 @@ class NewsBot(asybot):
def on_invite(self, prefix, command, params, rest):
for chan in rest.split():
self.push('JOIN ' + chan)
+ self.channels.append(chan)
def read_message(self, args):
try: