Disable OTR until the libotr devs fix their very broken API.

This commit is contained in:
js 2008-05-16 15:29:23 +00:00
parent 82f27b27ed
commit aaf3ca3161
1 changed files with 19 additions and 7 deletions

View File

@ -256,14 +256,26 @@ from common import dataforms
from common.xmpp import Message as XmppMessage
try:
import otr, otr_windows
## We disable OTR for now as libotr's API is just totally broken.
## If you don't care about losing messages because they were unencrypted
## and libotr only noticing us via a HTML string about this (which is only
## displayed as a notice) and don't fear other bugs, you can manually
## enable it here.
##
## OTR will *NOT* be reenabled by default until the developers of libotr
## fix their very broken API!
gajim.otr_module = otr
gajim.otr_windows = otr_windows
except ImportError:
gajim.otr_module = None
gajim.otr_windows = None
#try:
# import otr, otr_windows
#
# gajim.otr_module = otr
# gajim.otr_windows = otr_windows
#except ImportError:
# gajim.otr_module = None
# gajim.otr_windows = None
gajim.otr_module = None
gajim.otr_windows = None
def add_appdata(data=None, context=None):
account = data