From d07d5eddcd5af4645fb889c6d109acd8bf9d9200 Mon Sep 17 00:00:00 2001 From: Ben Kurtovic Date: Sun, 12 Aug 2012 01:49:40 -0400 Subject: [PATCH] Split watcher messages at the correct length. --- earwigbot/irc/watcher.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/earwigbot/irc/watcher.py b/earwigbot/irc/watcher.py index dbb1150..f000781 100644 --- a/earwigbot/irc/watcher.py +++ b/earwigbot/irc/watcher.py @@ -122,4 +122,4 @@ class Watcher(IRCConnection): if chans and frontend and not frontend.is_stopped(): pretty = rc.prettify() for chan in chans: - frontend.say(chan, pretty[:500 - len(chan)]) + frontend.say(chan, pretty[:400])