hifi / heisenbridge

a bouncer-style Matrix IRC bridge
MIT License
244 stars 34 forks source link

Name highlights are not case-sensitive #268

Open hashworks opened 1 year ago

hashworks commented 1 year ago

I have an IRC user that is named kraM. When someone writes kram (which is German for "stuff") the user is highlighted in my Matrix client (SchildiChat Desktop, an Element fork), confusing me: image

User in Matrix: image

Actual message: image

Is this a client-thing or something heisenbridge does?

toabi commented 1 year ago

I think it's heisenbridge which converts a nick to a handle. You can check the PILLS command in the network admin room for more details.

There you could either disable it or add your nick to the ignore list. Setting it to case-sensitive isn't an option there (yet).

I guess that's the code: https://github.com/hifi/heisenbridge/blob/v1.14.5/heisenbridge/private_room.py#L538-L562 and yeah there's a .lower().

hashworks commented 1 year ago

Hm, @hifi introduced the .lower() in https://github.com/hifi/heisenbridge/commit/8d256ce27b5426df4f202241ea98195c90ba0be3. I wonder if it's a hard requirement