Permalink
Browse files

Fixed got_offline triggering bug.

  • Loading branch information...
1 parent 9e3d506 commit 8aa3d0c0476d3a704069d324c03d2703e5e2ad76 @legastero legastero committed Oct 24, 2010
Showing with 3 additions and 2 deletions.
  1. +3 −2 sleekxmpp/basexmpp.py
View
@@ -593,8 +593,9 @@ def _handle_presence(self, presence):
if not connections and not self.roster[jid]['in_roster']:
del self.roster[jid]
- self.event("got_offline", presence)
- if was_offline:
+ if not was_offline:
+ self.event("got_offline", presence)
+ else:
return False
name = '(%s) ' % name if name else ''

0 comments on commit 8aa3d0c

Please sign in to comment.