chireiden / shanghai

Shanghai
GNU General Public License v3.0
4 stars 2 forks source link

Configuration #8

Open FichteFoll opened 8 years ago

FichteFoll commented 8 years ago

Use YAML for configuration, parser: ruamel.yaml (persists comments and style when modifying in-place).

Latest structure proposal: https://paste.chireiden.net/q/ODbUrfpWNFcT

FichteFoll commented 8 years ago

Imo we should follow the IRC URI spec [1] of only prepending hashes for channels that start with an alphanumeric character.

nitori commented 8 years ago

Forgot to reference, but pr #13 added yaml config parsing.

FichteFoll commented 8 years ago

Note to self: Prepend # to channels in config only if they start with an alphanumeric character, as described here.

nitori commented 8 years ago

I actually did that, but the other way around - only prepend # if it doesn't start with any of #, &, + and ! (according to rfc), since a channel can start with non-ascii (e.g. utf-8) chars on some networks like euIRC.

FichteFoll commented 8 years ago

Yeah well, it's good enough. I know that ZNC uses a channel named ~#znc as partyline, which would be impossible to configure this way however. Maybe intercept the server's CHANTYPES=#&+~ message?

nitori commented 8 years ago

Right, but then the prepending has to be deferred to after receiving the 005 message(s) (and consequently after the 001, where I usually issued the channel join commands).