Difference between revisions of "Irssi-otr"

From ArchWiki
Jump to: navigation, search
(Initial article skeleton)
 
(Some content)
Line 1: Line 1:
 
[[Category:Internet and Email (English)]]
 
[[Category:Internet and Email (English)]]
 +
[[Category:HOWTOs (English)]]
 +
 +
=About=
 +
 +
The [http://irssi-otr.tuxfamily.org/ irssi-otr] module brings
 +
[http://www.cypherpunks.ca/otr/ Off-the-Record Messaging] to your
 +
[http://irssi.org/ favorite IRC client].
  
=About OTR=
 
 
=Installing=
 
=Installing=
 +
 +
You can install the Irssi OTR module from the
 +
[http://aur.archlinux.org/packages.php?ID=19488 AUR].
 +
If you like to test bleeding edge software, there is also a
 +
[http://aur.archlinux.org/packages.php?ID=23366 Git version].
 +
 +
=Usage=
 +
 +
An example session ;)
 +
 +
/load otr
 +
/query someone ?OTR?
 +
Encypted message!
 +
/otr finish
 +
/unload otr
 +
 
=Automatic loading & unloading=
 
=Automatic loading & unloading=
 +
 +
==Loading the module on startup==
 +
 +
LOAD otr
 +
 +
==Finishing conversations on /quit==
 +
 +
/alias QUIT unload otr; quit
 +
 
=Stripping HTML=
 
=Stripping HTML=
 +
 +
If you use irssi-otr with [[Bitlbee | 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
 +
[http://wouter.coekaerts.be/site/irssi/trigger Trigger script].  Just make
 +
sure you load the script before the otr module either manually or make
 +
your ~/.irssi/startup look like this:
 +
 +
SCRIPT LOAD trigger.pl
 +
LOAD otr
 +
 +
-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 '&amp;amp;' -replace '&'
 +
-privmsgs -nocase -tags 'BitlBee' -regexp '&amp;gt;' -replace '>'
 +
-privmsgs -nocase -tags 'BitlBee' -regexp '&amp;lt;' -replace '<'
 +
-privmsgs -nocase -tags 'BitlBee' -regexp '&amp;quot;' -replace '"'
 +
 +
blafoo

Revision as of 19:32, 21 February 2009


About

The irssi-otr module brings Off-the-Record Messaging to your favorite IRC client.

Installing

You can install the Irssi OTR module from the AUR. If you like to test bleeding edge software, there is also a Git version.

Usage

An example session ;)

/load otr
/query someone ?OTR?
Encypted message!
/otr finish
/unload otr

Automatic loading & unloading

Loading the module on startup

LOAD otr

Finishing conversations on /quit

/alias QUIT unload otr; quit

Stripping HTML

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 either manually or make your ~/.irssi/startup look like this:

SCRIPT LOAD trigger.pl
LOAD otr
-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 '&amp;' -replace '&' 
-privmsgs -nocase -tags 'BitlBee' -regexp '&gt;' -replace '>' 
-privmsgs -nocase -tags 'BitlBee' -regexp '&lt;' -replace '<' 
-privmsgs -nocase -tags 'BitlBee' -regexp '&quot;' -replace '"' 

blafoo