Some fixes of mine for the otr plugin for irssi.