X-Git-Url: https://jfr.im/git/erebus.git/blobdiff_plain/586997a7668236c42527b70e4da93edcf4fa4af4..72137af75f3fd19186509be77f9c7368112676ae:/modules/module.py diff --git a/modules/module.py b/modules/module.py index 8a2989c..bcccaa2 100644 --- a/modules/module.py +++ b/modules/module.py @@ -1,10 +1,10 @@ -# Erebus IRC bot - Author: John Runyon +# Erebus IRC bot - Author: Erebus Team # module control through irc # This file is released into the public domain; see http://unlicense.org/ # module info modinfo = { - 'author': 'John Runyon (DimeCadmium)', + 'author': 'Erebus Team', 'license': 'public domain', 'compatible': [1], # compatible module API versions 'depends': [], # other modules required to work properly? @@ -41,7 +41,10 @@ def cmd_modunload(bot, user, chan, realtarget, *args): @lib.argsEQ(1) def cmd_modreload(bot, user, chan, realtarget, *args): okay = ctlmod.reloadmod(bot.parent, args[0]) - bot.msg(user, "Reloaded %s" % (args[0])) + if okay: + bot.msg(user, "Reloaded %s" % (args[0])) + else: + bot.msg(user, "Error occurred: %r" % (okay)) @lib.hook('modlist', needchan=False, glevel=lib.STAFF) @lib.argsEQ(0)