Added bold to the (more) that gets appended.

This commit is contained in:
Jeremy Fincher 2003-09-07 05:08:07 +00:00
parent 723ff123e1
commit 92b745f42f
2 changed files with 3 additions and 3 deletions

View File

@ -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!')

View File

@ -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))