def decorator(function): function = PluginFunction(function) for name in names: function.add_alias(name) return function
def decorator(function): function = PluginFunction(function) function.make_private(priv) return function
def decorator(function): function = PluginFunction(function) regex2 = re.compile(regex, flags) function.add_regex(regex2) return function
def decorator(function): function = PluginFunction(function) for cmd in cmds: function.add_cmd(cmd) return function
def decorator(function): function = PluginFunction(function) for regex in regexes: function.add_regex(regex) return function