anlutro / botologist

Plugin-driven Python3 IRC
MIT License
5 stars 5 forks source link

handle -c channel mode #25

Closed moopie closed 9 years ago

moopie commented 9 years ago

bot can't into speak when color is not allowed on channel

anlutro commented 9 years ago

The bot can either find the channel modes out on its own or have an enable_colors: true/false set for each individual channel. The latter is obviously less effort.

Bold/color codes can either be removed using str.replace or re.replace, or by abstracting away how special IRC symbols are applied - for example, instead of sending \x02bold\x0F directly, send %(bold)bold%(reset) and let the IRC client/bot instance decide how to format it.

anlutro commented 9 years ago

Forgot to close - fixed by https://github.com/anlutro/botologist/commit/f223041e49dff1c4d0f445ffca1e79fe0f7b5309