-
Notifications
You must be signed in to change notification settings - Fork 292
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
markdown in irc nickname #327
Comments
I'm trying to block an IRC user with the name "|N_X|4_cG_4iH4xW\Nkx1z2GXL0u" Trying to escape the underscores and backslashes results in the following error:
Any suggestions? |
@unnes try HTML entities, or just wrap the whole thing in an |
You shouldn't need to escape underscores, just backslashes and quotes. If you're getting an "invalid JSON" error, you may have done it wrong (perhaps JSON doesn't like you escaping underscores). This also seems mostly unrelated to the main issue here, so I'd suggest putting this into a new issue if you still have trouble. @mekolat I don't think that helps solve the problem? How would you wrap a bit of JSON in an inline code block, and why would HTML entities be relevant – it's JSON? |
Ah, right – no, I think it's an unrelated issue which was put here erroneously. |
If a user on IRC is named
_nick_
it will be sent to discord as-is and so appear asnick
but italicized instead of appearing as_nick_
non-italicized. To avoid this, discord-irc should prepend any markdown in nicknames with backslashes so_nick_
would be sent as\_nick\_
and show properly on discordThe text was updated successfully, but these errors were encountered: