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): """