(prefix)
Parse a prefix into it's parts

    :param prefix str: prefix to parse

    :returns tuple: tuple of strings in the form of (nick, user, host)
Parse a prefix into it's parts
Parse a prefix into it s parts
def parseprefix(prefix):
    """Parse a prefix into it's parts

    :param prefix str: prefix to parse

    :returns tuple: tuple of strings in the form of (nick, user, host)
    """

    m = PREFIX.match(prefix)

    if m is not None:
        return m.groups()
    else:
        return prefix or None, None, None
def parseprefix ( prefix ) : m = PREFIX . match ( prefix ) if m is not None : return m . groups ( ) else : return prefix or None , None , None