Skip to content

ISUPPORT PREFIX parsing throws away permission levels #64

@jaraco

Description

@jaraco

When PREFIX is parsed into the features list here, it throws away the relative permission levels each prefix has.

For instance, a typical PREFIX entry is: PREFIX=(qaohv)~&@%+

It's ordered from most to least permissions (as specified in the ISUPPORT draft), which lets people do things like check if a user has o or higher, or h or higher. Helps a lot for an IRC bot making channel-specific behaviour changes, which is where I'm needing that ability to see the order of permissions.
Maybe throwing qaohv into something like features.prefix_order?


Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions