torhve / weechat-matrix-protocol-script

A WeeChat script in Lua that implements the matrix.org chat protocol
349 stars 52 forks source link

Add option to strip (IRC) from IRC nicks #99

Open craftyguy opened 6 years ago

craftyguy commented 6 years ago

A few matrix clients (according to the matrix folks) strip the "(IRC)" substring that is appended to nicks on IRC, at least for tab completion.

I know nothing about lua, and just discovered your script 2 days ago. I have tried to figure out how to implement this, e.g. by adding a string gsub to Room:formatNick or Room:addNick, but none of these seemed to work. If you aren't able to implement this for any reason, I could totally give it a try if you give me a hint as to where in this script IRC nicks are formatted :)

craftyguy commented 6 years ago

Ok I think I got it figured out. #100 should implement this!