mirror of https://github.com/Mikaela/Limnoria.git
Added a configurable more length.
This commit is contained in:
parent
0408beb0fb
commit
e378b34138
|
@ -805,7 +805,10 @@ class IrcObjectProxy(RichReplyMethods):
|
||||||
self.irc.queueMsg(m)
|
self.irc.queueMsg(m)
|
||||||
return m
|
return m
|
||||||
else:
|
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,
|
maximumMores = conf.get(conf.supybot.reply.mores.maximum,
|
||||||
target)
|
target)
|
||||||
maximumLength = allowedLength * maximumMores
|
maximumLength = allowedLength * maximumMores
|
||||||
|
|
|
@ -286,6 +286,11 @@ registerChannelValue(supybot.reply.mores, 'maximum',
|
||||||
registry.PositiveInteger(50, """Determines what the maximum number of
|
registry.PositiveInteger(50, """Determines what the maximum number of
|
||||||
chunks (for use with the 'more' command) will be."""))
|
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',
|
registerChannelValue(supybot.reply.mores, 'instant',
|
||||||
registry.PositiveInteger(1, """Determines how many mores will be sent
|
registry.PositiveInteger(1, """Determines how many mores will be sent
|
||||||
instantly (i.e., without the use of the more command, immediately when
|
instantly (i.e., without the use of the more command, immediately when
|
||||||
|
|
Loading…
Reference in New Issue