mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-02-17 14:10:41 +01:00
Made the response of the upkeep command more useful.
This commit is contained in:
parent
8b05ce6e1a
commit
6c26e4e28f
@ -224,6 +224,12 @@ class OwnerCommands(CapabilityCheckingPrivmsg):
|
|||||||
Runs the standard upkeep stuff (flushes and gc.collects()).
|
Runs the standard upkeep stuff (flushes and gc.collects()).
|
||||||
"""
|
"""
|
||||||
world.upkeep()
|
world.upkeep()
|
||||||
|
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)
|
irc.reply(msg, conf.replySuccess)
|
||||||
|
|
||||||
def set(self, irc, msg, args):
|
def set(self, irc, msg, args):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user