Skip to content
This repository has been archived by the owner on Oct 9, 2019. It is now read-only.

colored messages are neither stripped out, nor correctly passed #65

Closed
lagleki opened this issue Apr 2, 2016 · 5 comments
Closed

colored messages are neither stripped out, nor correctly passed #65

lagleki opened this issue Apr 2, 2016 · 5 comments
Labels

Comments

@lagleki
Copy link

lagleki commented Apr 2, 2016

How to add color to IRC messages: http://www.mirc.com/colors.html

So when typing ^C5,12colored text and background the result in Telegram is "5,12colored text and background".
They are sent to Telegram as "\u000312" etc. I think we should remove them.

@FruitieX
Copy link
Owner

FruitieX commented Apr 2, 2016

Yes, these should be stripped out. I'm sure it's possible to scan each message for the ^C character and then remove the following few characters (how are the color codes separated from the text, is it always a one digit number, comma, two digit number?)

@lagleki
Copy link
Author

lagleki commented Apr 3, 2016

No, the comma is not necessary. The syntax is ^CN[,M].

This might help: erming/shout#210 (comment)

@FruitieX
Copy link
Owner

FruitieX commented Apr 3, 2016

Ah, that is helpful indeed thanks. If someone wants to implement this go ahead, otherwise I'll handle it during the coming weeks when I'm less busy hopefully :)

@FruitieX FruitieX added the bug label Apr 3, 2016
@albert--
Copy link
Contributor

albert-- commented Apr 3, 2016

You could also just set stripColors to truein your config file under config.ircOptions

@FruitieX
Copy link
Owner

FruitieX commented Apr 4, 2016

Ah perfect, that's what we will do.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants