From 6c26e4e28f8474c348a84873af6b04ff6bcd9c61 Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Sat, 23 Aug 2003 11:41:25 +0000 Subject: [PATCH] Made the response of the upkeep command more useful. --- src/privmsgs.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/privmsgs.py b/src/privmsgs.py index 98d29d900..2abb56303 100644 --- a/src/privmsgs.py +++ b/src/privmsgs.py @@ -224,7 +224,13 @@ class OwnerCommands(CapabilityCheckingPrivmsg): Runs the standard upkeep stuff (flushes and gc.collects()). """ world.upkeep() - irc.reply(msg, conf.replySuccess) + if gc.garbage: + if len(gc.garbage) < 10: + irc.reply(msg, 'Garbage! %r' % gc.garbage) + else: + irc.reply(msg, 'Garbage! %s items.' % len(gc.garbage)) + else: + irc.reply(msg, conf.replySuccess) def set(self, irc, msg, args): """