From 39a5879d3feb4a3c41cfb29d79ad5bbb2e7c8205 Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Fri, 5 Sep 2003 15:42:43 +0000 Subject: [PATCH] Fixed docstring for last command and change the way dict shows chopped entries. --- plugins/FunCommands.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/plugins/FunCommands.py b/plugins/FunCommands.py index 68e8528c1..2cf8399c9 100644 --- a/plugins/FunCommands.py +++ b/plugins/FunCommands.py @@ -630,12 +630,13 @@ class FunCommands(callbacks.Privmsg): irc.reply(msg, response) def last(self, irc, msg, args): - """[--{from,in,to,with,regexp,nodecorate}] + """[--{from,in,to,with,regexp,fancy}] Returns the last message matching the given criteria. --from requires a nick from whom the message came; --in and --to require a channel the message was sent to; --with requires some string that had to be in the message; --regexp requires a regular expression the message must match + --fancy determines whether or not to show the nick; the default is not """ (optlist, rest) = getopt.getopt(args, '', ['from=', 'in=', 'to=', @@ -884,7 +885,7 @@ class FunCommands(callbacks.Privmsg): originalFirst = L[0] ircutils.shrinkList(L, '; ') if not L: - irc.reply(msg, 'Chopped: %s' % originalFirst[:400]) + irc.reply(msg, '%s ' % originalFirst[:400]) elif dictionary == '*': s = '%s responded, %s shown: %s' % \ (utils.commaAndify(dbs), len(L), '; '.join(L))