Fix 'more' wrapping for long words; bug introduced in 169392e5.

This commit is contained in:
Valentin Lorentz 2013-01-04 22:16:08 +01:00
parent e86768b61a
commit 29e13a9061

View File

@ -915,7 +915,8 @@ class NestedCommandsIrcProxy(ReplyIrcProxy):
prefixNick=self.prefixNick)
self.irc.queueMsg(m)
return m
msgs = ircutils.wrap(s, allowedLength)
msgs = ircutils.wrap(s, allowedLength,
break_long_words=True)
msgs.reverse()
instant = conf.get(conf.supybot.reply.mores.instant,target)
while instant > 1 and msgs: