torhve / weechat-matrix-protocol-script

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

Issue with formatting and "\t" and "\n" #109

Open abrahimladha opened 6 years ago

abrahimladha commented 6 years ago

I have a small bot which when prompted gives you a table formatted with tabs and newlines. It should look like this: 20180220_080120_syj

It instead, in weechat looks like this: 20180220_080136_wrh

The first entries in each row seem to have been confused and wrap around to be on the side where it should be usernames. If you try to exploit this in weechat by manually sending a string with a newline, it will prompt you to send as multiple lines. If you say yes you can avoid the bug, if you say no, you cannot. Bots do not get prompted like this so the bug is always present for their messages.

furai commented 6 years ago

Isn't it weechat related?