mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-23 19:22:45 +01:00
Made the response of the upkeep command more useful.
This commit is contained in:
parent
8b05ce6e1a
commit
6c26e4e28f
@ -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):
|
||||
"""<name> <value>
|
||||
|
Loading…
Reference in New Issue
Block a user