xep_0384: Add check on data_dir before loading plugin

Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
This commit is contained in:
Maxime “pep” Buquet 2019-01-12 18:36:32 +00:00
parent 15f34aa145
commit a490ca6066

View file

@ -141,6 +141,11 @@ class XEP_0384(BasePlugin):
"is not available") "is not available")
return return
if not self.data_dir:
log.info("xep_0384 canoot be loaded as there is not data directory "
"specified")
return None
storage = SyncFileStorage(self.data_dir) storage = SyncFileStorage(self.data_dir)
otpkpolicy = KeepingOTPKPolicy() otpkpolicy = KeepingOTPKPolicy()
self._omemo_backend = SignalBackend self._omemo_backend = SignalBackend