From bf77021d670362cbca73b047348f870b07203f35 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Tue, 14 Jul 2009 16:41:25 +0200 Subject: [PATCH] don't send a new presence when we only want to change pep info --- src/roster_window.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/roster_window.py b/src/roster_window.py index 4ffdbd50e..4335df336 100644 --- a/src/roster_window.py +++ b/src/roster_window.py @@ -1916,6 +1916,9 @@ def send_status(self, account, status, txt, auto=False, to=None): child_iterA = self._get_account_iter(account, self.model) if status != 'offline': if to is None: + if status == gajim.connections[account].get_status() and \ + txt == gajim.connections[account].status: + return gajim.config.set_per('accounts', account, 'last_status', status) gajim.config.set_per('accounts', account, 'last_status_msg', helpers.to_one_line(txt)) -- GitLab