From cf595c0ffd06f9b69f0466009516bf02bbc3ad99 Mon Sep 17 00:00:00 2001 From: mathieui Date: Sun, 5 Jun 2016 02:14:26 +0200 Subject: Enable XEP-0319 and use it instead of 0012 (it does both by default, and is better) --- src/connection.py | 1 + src/core/core.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/connection.py b/src/connection.py index c105c4bd..c4cc8b6b 100644 --- a/src/connection.py +++ b/src/connection.py @@ -162,6 +162,7 @@ class Connection(slixmpp.ClientXMPP): self.register_plugin('xep_0280') self.register_plugin('xep_0297') self.register_plugin('xep_0308') + self.register_plugin('xep_0319') self.register_plugin('xep_0334') self.register_plugin('xep_0352') self.init_plugins() diff --git a/src/core/core.py b/src/core/core.py index cf2cfc2e..f32099f1 100644 --- a/src/core/core.py +++ b/src/core/core.py @@ -654,7 +654,7 @@ class Core(object): else: self.do_command(''.join(char_list), True) if self.status.show not in ('xa', 'away'): - self.xmpp.plugin['xep_0012'].begin_idle(jid=self.xmpp.boundjid) + self.xmpp.plugin['xep_0319'].idle() self.doupdate() def save_config(self): -- cgit v1.2.3