BiDi text on Weechat

I've been learning Hebrew for some time now. And it's unbelievable how much bidi text support sucks everywhere. It's really shocking...

After some months of swearing, I've finally sat and made a little script that at least within Weechat makes things suck a little less.

You can download the script both from the Weechat website and from my github repository. For now it works only for the messages. The topic line and the text on the input line will still show up backwards... I'm happy to accept any patches :)

This is also supposed to be the shortest Weechat script that actually does something useful, but hopefully it won't stay this short for much longer :)