summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xircbot/controller.py (renamed from ircbot/contoller.py)2
1 files changed, 1 insertions, 1 deletions
diff --git a/ircbot/contoller.py b/ircbot/controller.py
index 59c3abb8..66c42bd7 100755
--- a/ircbot/contoller.py
+++ b/ircbot/controller.py
@@ -33,7 +33,7 @@ class NewsBot(irc.bot.SingleServerIRCBot):
def on_pubmsg(self, connection, event):
args_array = event.arguments[0].split()
- if args_array[0][:-1]==self.name:
+ if len(args_array[0]) > 0 and args_array[0][:-1]==self.name:
answer = self.read_message(args_array[1:])
self.send(event.target, answer)