mirror of
https://github.com/progval/Limnoria.git
synced 2025-04-28 14:01:03 -05: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()).
|
Runs the standard upkeep stuff (flushes and gc.collects()).
|
||||||
"""
|
"""
|
||||||
world.upkeep()
|
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):
|
def set(self, irc, msg, args):
|
||||||
"""<name> <value>
|
"""<name> <value>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user