Beispiel #1
0
def handle_plugdisable(bot, ievent):
    if not ievent.rest:
        ievent.missing('<plugname>')
        return
    plugs = ievent.rest.split()
    disabled = []
    for plug in plugs:
        plugins.unload(plug)
        plugins.disable(plug)
        disabled.append(plug)
    ievent.reply('disabled plugins: ', disabled)
Beispiel #2
0
def handle_plugdisable(bot, ievent):
    if not ievent.rest:
        ievent.missing('<plugname>')
        return
    plugs = ievent.rest.split()
    disabled = []
    for plug in plugs:
        plugins.unload(plug)
        plugins.disable(plug)
        disabled.append(plug)
    ievent.reply('disabled plugins: ', disabled)
Beispiel #3
0
def handle_unload(bot, ievent):
    """ unload <plugin> .. unload a plugin """
    try:
        what = ievent.args[0].lower()
    except IndexError:
        ievent.missing("<plugin>")
        return
    if not plugins.exist(what):
        ievent.reply("there is no %s module" % what)
        return
    got = plugins.unload(what)
    for what in got:
        plugins.disable(what)
    ievent.reply("unloaded and disabled: ", got, dot=True)
Beispiel #4
0
def handle_unload(bot, ievent):
    """ unload <plugin> .. unload a plugin """
    try:
        what = ievent.args[0].lower()
    except IndexError:
        ievent.missing('<plugin>')
        return
    if not plugins.exist(what):
        ievent.reply('there is no %s module' % what)
        return
    got = plugins.unload(what)
    for what in got:
        plugins.disable(what)
    ievent.reply("unloaded and disabled: ", got, dot=True)