Fixed a bugz0r.

This commit is contained in:
Jeremy Fincher 2004-10-26 19:37:03 +00:00
parent 39ab3459de
commit f11e7d19d3
1 changed files with 2 additions and 1 deletions

View File

@ -809,6 +809,7 @@ class IrcObjectProxy(RichReplyMethods):
target)
if not allowedLength: # 0 indicates this.
allowedLength = 450 - len(self.irc.prefix)
allowedLength -= len(msg.nick)
maximumMores = conf.get(conf.supybot.reply.mores.maximum,
target)
maximumLength = allowedLength * maximumMores
@ -832,7 +833,7 @@ class IrcObjectProxy(RichReplyMethods):
prefixName=self.prefixName)
self.irc.queueMsg(m)
return m
msgs = ircutils.wrap(s, allowedLength-30) # -30 is for nick:
msgs = ircutils.wrap(s, allowedLength)
msgs.reverse()
instant = conf.get(conf.supybot.reply.mores.instant,target)
while instant > 1 and msgs: