jaraco / irc

Full-featured Python IRC library for Python.
MIT License
392 stars 86 forks source link

ISUPPORT PREFIX parsing throws away permission levels #64

Closed jaraco closed 8 years ago

jaraco commented 8 years ago

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?


jaraco commented 8 years ago

Sorry, this issue was made by me, didn't realise I wasn't logged in when I created it.


Original comment by: Daniel Oaks

jaraco commented 8 years ago

Use OrderedDict for PREFIX. Fixes #64.

→ <<cset 1ffb38b25422>>


Original comment by: Jason R. Coombs

jaraco commented 8 years ago

Released as 13.1.


Original comment by: Jason R. Coombs