mirror of https://github.com/Mikaela/Limnoria.git
Added a configurable more length.
This commit is contained in:
parent
0408beb0fb
commit
e378b34138
|
@ -805,6 +805,9 @@ class IrcObjectProxy(RichReplyMethods):
|
|||
self.irc.queueMsg(m)
|
||||
return m
|
||||
else:
|
||||
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)
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue