Added a configurable more length.

This commit is contained in:
Jeremy Fincher 2004-10-26 18:54:03 +00:00
parent 0408beb0fb
commit e378b34138
2 changed files with 9 additions and 1 deletions

View File

@ -805,7 +805,10 @@ class IrcObjectProxy(RichReplyMethods):
self.irc.queueMsg(m)
return m
else:
allowedLength = 450 - len(self.irc.prefix)
allowedLength = conf.get(conf.supybot.reply.mores.length,
target)
if not allowedLength: # 0 indicates this.
allowedLength = 450 - len(self.irc.prefix)
maximumMores = conf.get(conf.supybot.reply.mores.maximum,
target)
maximumLength = allowedLength * maximumMores

View File

@ -286,6 +286,11 @@ registerChannelValue(supybot.reply.mores, 'maximum',
registry.PositiveInteger(50, """Determines what the maximum number of
chunks (for use with the 'more' command) will be."""))
registerChannelValue(supybot.reply.mores, 'length',
registry.NonNegativeInteger(0, """Determines how long individual chunks
will be. If set to 0, uses our super-tweaked,
get-the-most-out-of-an-individual-message default."""))
registerChannelValue(supybot.reply.mores, 'instant',
registry.PositiveInteger(1, """Determines how many mores will be sent
instantly (i.e., without the use of the more command, immediately when