Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Irc colors on Telegram #245

Open
ghost opened this issue Jan 15, 2019 · 3 comments
Open

Irc colors on Telegram #245

ghost opened this issue Jan 15, 2019 · 3 comments

Comments

@ghost
Copy link

ghost commented Jan 15, 2019

Hi, is there a way to show irc colors on telegram? I keep receiving something like this "04mynick". I've seen that "04" is red but I can't find any parameter on "message_content". I've only found something about the pushover app and I don't know if this is telegram related: sopel-irc/sopel#462
Thank you

@dgw
Copy link
Collaborator

dgw commented Jan 15, 2019

A quick Google search found this Stack Overflow thread. Color doesn't seem to be supported in Telegram.

Sopel (which I maintain) is an IRC bot only and does not connect to Telegram in any way. Someone might have written a plugin, but that control code stripping function is not yet implemented.

If ZNC Push doesn't have a way to strip control codes, maybe it should. (I'm on my phone, so I'll have to check the code later if needed.)

@amyreese
Copy link
Owner

The ZNC API already has a mechanism for stripping control characters from strings. 1 It should just be a matter of adding that into the push notification flow.

@resutig
Copy link

resutig commented Aug 11, 2019

To strip the colour codes, you can add a new line short_message.StripControls(); after the line 239. Then you need to rebuild the plugin.

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

No branches or pull requests

3 participants