summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2014-08-01 13:32:07 +0200
committerFlorent Le Coz <louiz@louiz.org>2014-08-01 13:32:07 +0200
commitd84071a80454b1edbe6497eda5e23365bd0158a4 (patch)
treeab496083e3a89c192773c2551ef3861603414cd3 /src/core
parent6250ba345e8077ee913bd1fa2a3d5e2c5ae0c416 (diff)
downloadpoezio-d84071a80454b1edbe6497eda5e23365bd0158a4.tar.gz
poezio-d84071a80454b1edbe6497eda5e23365bd0158a4.tar.bz2
poezio-d84071a80454b1edbe6497eda5e23365bd0158a4.tar.xz
poezio-d84071a80454b1edbe6497eda5e23365bd0158a4.zip
Privacy: do leak our last activy when our status is away or xa
Diffstat (limited to 'src/core')
-rw-r--r--src/core/core.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/core.py b/src/core/core.py
index 763e4046..75a3d7f5 100644
--- a/src/core/core.py
+++ b/src/core/core.py
@@ -598,7 +598,8 @@ class Core(object):
self.do_command(replace_line_breaks(char), False)
else:
self.do_command(''.join(char_list), True)
- self.xmpp.plugin['xep_0012'].begin_idle(jid=self.xmpp.boundjid)
+ if self.status.show not in ('xa', 'away'):
+ self.xmpp.plugin['xep_0012'].begin_idle(jid=self.xmpp.boundjid)
self.doupdate()
def save_config(self):