

@internationalizeDocstring
def plugin(self, irc, msg, args, command):
    '<command>\n\n        Returns the name of the plugin that would be used to call <command>.\n        \n        If it is not uniquely determined, returns list of all plugins that\n        contain <command>.\n        '
    (maxL, cbs) = msg.findCallbacksForArgs(command)
    L = []
    if (maxL == command):
        for cb in cbs:
            L.append(cb.name())
    command = callbacks.formatCommand(command)
    if L:
        if irc.nested:
            irc.reply(format('%L', L))
        else:
            if (len(L) > 1):
                plugin = _('plugins')
            else:
                plugin = _('plugin')
            irc.reply(format(_('The %q command is available in the %L %s.'), command, L, plugin))
    else:
        irc.error(format(_('There is no command %q.'), command))

dataset/ETHPy150Open ProgVal/Limnoria/plugins/Plugin/plugin.py Plugin.plugin/VarMisuse@29/112 `irc`->`msg`