]> jfr.im git - erebus.git/blobdiff - modules/control.py
handle nick-taken
[erebus.git] / modules / control.py
index 0584353afc38b9c82b247569f202d0b8ab521567..3392258e0c696b2ce8d5428309fdf063c145f140 100644 (file)
@@ -68,7 +68,7 @@ def modreload(bot, user, chan, realtarget, *args):
 def modlist(bot, user, chan, realtarget, *args):
        mods = ctlmod.modules
        for mod in mods.itervalues():
-               bot.msg(user, "- %s (%s)" % (mod.__name__, mod.__file__))
+               bot.msg(user, "- %s (%s)" % ((mod.__name__.split(".", 1))[1], mod.__file__))
        bot.msg(user, "Done.")
 
 def _whois(user, chan, showglevel=True, showclevel=True):