]> jfr.im git - erebus.git/commitdiff
sort modlist results
authorJohn Runyon <redacted>
Sun, 18 Jun 2023 14:21:25 +0000 (08:21 -0600)
committerJohn Runyon <redacted>
Sun, 18 Jun 2023 14:21:25 +0000 (08:21 -0600)
modules/control.py

index 5afae819a543276572570fc3f3848ec158c027bd..b4dbfbf98fce3d3330c787fdb57aaaab377bc461 100644 (file)
@@ -80,7 +80,7 @@ def modreload(bot, user, chan, realtarget, *args):
 @lib.argsEQ(0)
 def modlist(bot, user, chan, realtarget, *args):
        mods = ctlmod.modules
-       for modname, mod in mods.items():
+       for modname, mod in sorted(mods.items()):
                bot.msg(user, "- %s (%s) [%s]" % ((modname, mod.__file__, ', '.join(ctlmod.dependents[modname]))))
        bot.msg(user, "Done.")