mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-02-23 17:10:47 +01:00
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)
|
||||
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
|
||||
|
@ -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…
x
Reference in New Issue
Block a user