summaryrefslogtreecommitdiffstats
path: root/news/controller.py
diff options
context:
space:
mode:
authorlassulus <lassulus@googlemail.com>2014-01-10 21:23:11 +0100
committerlassulus <lassulus@googlemail.com>2014-01-10 21:23:11 +0100
commit62360486904f1e7dfe3460069936e5cd349c4e80 (patch)
tree6167cd742c8063d2273f5659adbb999d54cac911 /news/controller.py
parent739aa37a328a9951c2c989df5bcb5e720d6d1742 (diff)
news: fix controller exit, show rss url
Diffstat (limited to 'news/controller.py')
-rwxr-xr-xnews/controller.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/news/controller.py b/news/controller.py
index f9a61e3c..584d020f 100755
--- a/news/controller.py
+++ b/news/controller.py
@@ -33,7 +33,7 @@ class NewsBot(irc.bot.SingleServerIRCBot):
def on_pubmsg(self, connection, event):
args_array = event.arguments[0].split()
- if len(args_array[0]) > 0 and args_array[0][:-1]==self.name:
+ if len(args_array) > 0 and args_array[0][:-1]==self.name:
answer = self.read_message(args_array[1:])
self.send(event.target, answer)
@@ -106,6 +106,7 @@ class commands():
if data in bots[args[1]].feed.feed:
output_buffer += data + ': ' + bots[args[1]].feed.feed[data] + '\n'
output_buffer += 'lastnew: ' + bots[args[1]].lastnew.isoformat()
+ output_buffer += 'rssurl: ' + bots[args[1]].url
return output_buffer
else:
return 'bot not found'