don't send a new presence when we only want to change pep info

This commit is contained in:
Yann Leboulanger 2009-07-14 16:41:25 +02:00
parent 77042883c3
commit 5f55a54e76
1 changed files with 3 additions and 0 deletions

View File

@ -1941,6 +1941,9 @@ class RosterWindow:
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))