def protocols(client, protocols): """ Enumerate protocol capabilities so they can be registered. """ for protocol in csv(protocols): client.cmd('CAPABILITY', protocol)
def capability(client, CAPABILITY, capabilities): """ Register a server's default protocol capabilities. """ client.protocols[CAPABILITY] = csv(capabilities)