| 259 | | try: |
| 260 | | import otr, otr_windows |
| 261 | | |
| 262 | | gajim.otr_module = otr |
| 263 | | gajim.otr_windows = otr_windows |
| 264 | | except ImportError: |
| 265 | | gajim.otr_module = None |
| 266 | | gajim.otr_windows = None |
| | 259 | ## We disable OTR for now as libotr's API is just totally broken. |
| | 260 | ## If you don't care about losing messages because they were unencrypted |
| | 261 | ## and libotr only noticing us via a HTML string about this (which is only |
| | 262 | ## displayed as a notice) and don't fear other bugs, you can manually |
| | 263 | ## enable it here. |
| | 264 | ## |
| | 265 | ## OTR will *NOT* be reenabled by default until the developers of libotr |
| | 266 | ## fix their very broken API! |
| | 267 | |
| | 268 | #try: |
| | 269 | # import otr, otr_windows |
| | 270 | # |
| | 271 | # gajim.otr_module = otr |
| | 272 | # gajim.otr_windows = otr_windows |
| | 273 | #except ImportError: |
| | 274 | # gajim.otr_module = None |
| | 275 | # gajim.otr_windows = None |
| | 276 | |
| | 277 | gajim.otr_module = None |
| | 278 | gajim.otr_windows = None |