42wim / matterbridge

bridge between mattermost, IRC, gitter, xmpp, slack, discord, telegram, rocketchat, twitch, ssh-chat, zulip, whatsapp, keybase, matrix, microsoft teams, nextcloud, mumble, vk and more with REST API (mattermost not required!)
Apache License 2.0
6.56k stars 617 forks source link

insert zero width space in nicks on irc #175

Closed NikkyAI closed 7 years ago

NikkyAI commented 7 years ago

Please answer the following questions.

Which version of matterbridge are you using?

run matterbridge -version version: 0.12.0 8c7549a

Please describe the expected behavior.

prefixed nicknames on irc should have a no ping character or zero width space U+200B

in the following line a zero width space is inserted at position 1 of the nickname <N​ickname> some message

Please describe the actual behavior.

there is no inserted zwsp and there seem to be no options to enable such behaviour

Please add your configuration file

(be sure to exclude or anonymize private data (tokens/passwords))

[irc]
    [irc.esper]
    Server="irc.esper.net:6697"
    Nick="ruby" #effectively "ruby_" while testing

    UseTLS=true
    UseSASL=true

    NickServNick="username"
    NickServPassword="hunter2"

    IgnoreNicks="cord spammer"

[discord]
    [discord.chat]
    Token="token"
    Server="servername"
    EditDisable=false
    EditSuffix=" (edited)"
    IgnoreNicks="[cord] spammer"
    RemoteNickFormat="<{NICK}> "
    ShowJoinPart=false

[[gateway]]
#REQUIRED and UNIQUE
name="cord"
enable=true
    [[gateway.inout]]
    account="irc.esper"
    channel="#cord"

    [[gateway.inout]]
    account="discord.chat"
    channel="cord"
42wim commented 7 years ago

Sorry, I don't really understand. You want to insert a ZWSP after the nick ? and it doesn't work by using the RemoteNickFormat, is that the issue ?

NikkyAI commented 7 years ago

i am not sure how the remotenickformat would allow me to split the string and insert something in the middle

and not after the nickname.. inside it

so that Nickname turns into N ickname for example.. just obviously not visible

42wim commented 7 years ago

You want to insert a ZWSP inside a nick ? why? RemoteNickFormat="<{NICK}> " is what I am talking about

NikkyAI commented 7 years ago

because people who are on both platforms ping themself when chatting .. and yes their irc clients are stupid but that seems to be the easiest way to fix this

NikkyAI commented 7 years ago

and ignoring the bot would not really help because then other users that send through the bot cannot ping you

42wim commented 7 years ago

Ok, I understand now. Let me think about it.

42wim commented 7 years ago

Ok, I've added this feature in master. You can now use {NOPINGNICK}, this will insert a ZWSP inside of the nick.

Mikaela commented 4 years ago

In case it's of interest here, so far the clients I have been told about that don't support ZWSP are:

uduntuntu commented 4 years ago

In case it's of interest here, so far the clients I have been told about that don't support ZWSP are:

image Neat example the situation of my nick

I think the ZWSP is copied here from my Windows Terminal window. 19:02:47 <+MI1> [T] <A​riMartti>

42wim commented 4 years ago

Yes, noticed it too, anyone an idea for workaround ?:)

Juliaria08 commented 2 years ago

Just ask them to fix it, should be that a better workaround, because this is the use of zwsp, no?