mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-02-18 22:51:01 +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:
|
try:
|
||||||
chunk = self._mores[userHostmask].pop()
|
chunk = self._mores[userHostmask].pop()
|
||||||
if self._mores[userHostmask]:
|
if self._mores[userHostmask]:
|
||||||
chunk += ' (more)'
|
chunk += ' \x02(more)\x0F'
|
||||||
irc.reply(msg, chunk, True)
|
irc.reply(msg, chunk, True)
|
||||||
except KeyError:
|
except KeyError:
|
||||||
irc.error(msg, 'You haven\'t asked me a command!')
|
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.
|
# " (more)" to the end, so that's 7 more characters.
|
||||||
# 512 - 51 == 461.
|
# 512 - 51 == 461.
|
||||||
s = ircutils.safeArgument(s)
|
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 = textwrap.wrap(s, allowedLength-30) # -30 is for "nick:"
|
||||||
msgs.reverse()
|
msgs.reverse()
|
||||||
response = msgs.pop()
|
response = msgs.pop()
|
||||||
if msgs:
|
if msgs:
|
||||||
response += ' (more)'
|
response += ' \x02(more)\x0F'
|
||||||
mask = msg.prefix.split('!', 1)[1]
|
mask = msg.prefix.split('!', 1)[1]
|
||||||
Privmsg._mores[mask] = msgs
|
Privmsg._mores[mask] = msgs
|
||||||
self.irc.queueMsg(reply(msg, response))
|
self.irc.queueMsg(reply(msg, response))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user