mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-30 14:59:34 +01:00
Added bold to the (more) that gets appended.
This commit is contained in:
parent
723ff123e1
commit
92b745f42f
@ -219,7 +219,7 @@ class MiscCommands(callbacks.Privmsg):
|
||||
try:
|
||||
chunk = self._mores[userHostmask].pop()
|
||||
if self._mores[userHostmask]:
|
||||
chunk += ' (more)'
|
||||
chunk += ' \x02(more)\x0F'
|
||||
irc.reply(msg, chunk, True)
|
||||
except KeyError:
|
||||
irc.error(msg, 'You haven\'t asked me a command!')
|
||||
|
@ -357,12 +357,12 @@ class IrcObjectProxy:
|
||||
# " (more)" to the end, so that's 7 more characters.
|
||||
# 512 - 51 == 461.
|
||||
s = ircutils.safeArgument(s)
|
||||
allowedLength = 461 - len(self.irc.prefix)
|
||||
allowedLength = 463 - len(self.irc.prefix)
|
||||
msgs = textwrap.wrap(s, allowedLength-30) # -30 is for "nick:"
|
||||
msgs.reverse()
|
||||
response = msgs.pop()
|
||||
if msgs:
|
||||
response += ' (more)'
|
||||
response += ' \x02(more)\x0F'
|
||||
mask = msg.prefix.split('!', 1)[1]
|
||||
Privmsg._mores[mask] = msgs
|
||||
self.irc.queueMsg(reply(msg, response))
|
||||
|
Loading…
Reference in New Issue
Block a user