# module control through irc
# This file is released into the public domain; see http://unlicense.org/
# module info
modinfo = {
# module control through irc
# This file is released into the public domain; see http://unlicense.org/
# module info
modinfo = {
'license': 'public domain',
'compatible': [1], # compatible module API versions
'depends': [], # other modules required to work properly?
'license': 'public domain',
'compatible': [1], # compatible module API versions
'depends': [], # other modules required to work properly?
@lib.argsEQ(1)
def cmd_modreload(bot, user, chan, realtarget, *args):
okay = ctlmod.reloadmod(bot.parent, args[0])
@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))