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

View file

@ -256,14 +256,26 @@ from common import dataforms
from common.xmpp import Message as XmppMessage from common.xmpp import Message as XmppMessage
try: ## We disable OTR for now as libotr's API is just totally broken.
import otr, otr_windows ## 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 #try:
gajim.otr_windows = otr_windows # import otr, otr_windows
except ImportError: #
gajim.otr_module = None # gajim.otr_module = otr
gajim.otr_windows = None # 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): def add_appdata(data=None, context=None):
account = data account = data