See the README.
Automatic loading & unloading
Loading the module on startup
If you are tired of typing /load otr you can put the following in your ~/.irssi/startup:
Finishing conversations on /quit
If otr_finishonunload is set irssi-otr will finish all your OTR sessions when the module is unloaded. However when you /quit, Irssi disconnects from the IRC networks first and unloads its modules afterwards. Of course this will prevent your OTR sessions form being finished correctly. To circumvent this you can define the following alias:
/alias QUIT unload otr; quit
If you use irssi-otr with BitlBee you will notice that some clients send you HTML formatted messages. Normally BitlBee automatically strips the HTML formatting, but since the messages are encrypted this doesn't work anymore. Nevertheless you can achieve the same by stripping the HTML with regular expressions using the Trigger script. Just make sure you load the script before the otr module. You can either do this manually or again make your ~/.irssi/startup look like this:
SCRIPT LOAD trigger.pl LOAD otr
Also make sure that trigger.pl is not in ~/.irssi/scripts/autorun since the files from this directory are loaded after ~/.irssi/startup.
We will take a somewhat conservative approach. We will only strip HTML tags we explicitly specified from PRIVMSGS from the BitlBee network, where we assume you added you server.
-privmsgs -nocase -tags 'BitlBee' -regexp '</?(a|b|body|div|em|font|i|s|u)( +\w+=".*?")*>' -replace
Finally convert some escaped HTML characters:
-privmsgs -nocase -tags 'BitlBee' -regexp '&' -replace '&' -privmsgs -nocase -tags 'BitlBee' -regexp '>' -replace '>' -privmsgs -nocase -tags 'BitlBee' -regexp '<' -replace '<' -privmsgs -nocase -tags 'BitlBee' -regexp '"' -replace '"'