From 56e5629877c10311c826cc14b164003c3ee8aa5a Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Fri, 28 Aug 2009 15:06:35 +0200 Subject: [PATCH] always disable autoaway when we go offline. Fixes #5218 --- src/roster_window.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/roster_window.py b/src/roster_window.py index fa214f8ea..647b80eca 100644 --- a/src/roster_window.py +++ b/src/roster_window.py @@ -1999,7 +1999,8 @@ class RosterWindow: if status == 'online' and gajim.interface.sleeper.getState() != \ common.sleepy.STATE_UNKNOWN: gajim.sleeper_state[account] = 'online' - elif gajim.sleeper_state[account] not in ('autoaway', 'autoxa'): + elif gajim.sleeper_state[account] not in ('autoaway', 'autoxa') or \ + status == 'offline': gajim.sleeper_state[account] = 'off' if to: