Matterbridge: insert zero width space in nicks on irc

Created on 23 May 2017  路  10Comments  路  Source: 42wim/matterbridge

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鈥媔ckname> 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"

Most helpful comment

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

All 10 comments

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 ?

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

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

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

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

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

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

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

  • Terminal.app
  • Windows Terminal (https://github.com/microsoft/terminal/issues/1472)

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鈥媟iMartti>

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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

pb30 picture pb30  路  5Comments

w3bb picture w3bb  路  6Comments

hoerup picture hoerup  路  5Comments

Wouter0100 picture Wouter0100  路  4Comments

Gummikavalier picture Gummikavalier  路  4Comments