Skip to content
WeeChat script for Off-the-Record messaging
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
doc
docker Dockerfile and scripts for a reproducible development environment. Dec 30, 2014
signatures
weechat_otr_test Add test for git_info Aug 12, 2017
.gitignore Add .swp files to gitignore. Jan 23, 2015
.travis.yml Remove pylint version requirement Dec 3, 2015
ChangeLog Release version 1.9.2 Mar 27, 2018
README.md Set buffer local vars with OTR conversation status Dec 14, 2016
pylint.rc
requirements.txt
run_tests.sh Move test directory to weechat_otr_test. Jan 9, 2014
test_until_fail.sh
watch_tests.py Automatically run tests when any Python file is changed. Feb 6, 2014
weechat_otr.py Release version 1.9.2 Mar 27, 2018

README.md

WeeChat script for Off-the-Record (OTR) Messaging

Screenshot

Please note: This script makes every effort to securely provide OTR Messaging in WeeChat but offers no guarantee. Please report any security problems you find.

Testing and security auditing are appreciated.

Build Status

Installation

This script requires Weechat 0.4.2 or later and the Pure Python OTR package to be installed with one of the following methods:

Python package:

pip install --upgrade --user python-potr

If this fails, read Requirements for building Pure Python OTR below.

Arch:

yaourt -S python2-potr

Debian based systems:

sudo apt-get install python-potr

The latest release version of WeeChat OTR can be found in the WeeChat scripts repository. To install from within WeeChat:

/script install otr.py

To install manually, download weechat_otr.py from GitHub and save it in ~/.weechat/python. Then either symlink it into ~/.weechat/python/autoload or /python load weechat_otr.py in WeeChat.

Latest unstable version from GitHub

If you are using an official release of the script, it is a good idea to verify the signature.

Requirements for building Pure Python OTR

If python-potr fails to install, you are probably missing some packages. To install all the requirements on a Debian/Ubuntu system, run

sudo apt-get install python-pip python-wheel build-essential python-dev

Or on Arch run

sudo pacman --needed -S python2-pip python2-wheel python2-keyring base-devel

Buffer Local Variables

The script will set the following buffer local variables:

  • localvar_set_otr_encrypted - whether the buffer is OTR encrypted (true or false)
  • localvar_set_otr_authenticated - whether the buffer is OTR authenticated (true or false)
  • localvar_set_otr_logged - whether the buffer is logged (true or false)

These match what is shown in the status bar and can be used by remote interfaces via the WeeChat relay protocol or by other scripts.

Support

IRC channel: #weechat-otr on Freenode

Create GitHub issues/pull requests for questions, comments and patches or email matthewm@boedicker.org or koolfy@koolfy.be.

Thanks

Thanks to Kjell Braden for the Pure Python OTR library and the Gajim Python plugin which was used as a reference.

You can’t perform that action at this time.