Fixed got_offline triggering bug.

This commit is contained in:
Lance Stout 2010-10-24 18:56:50 -04:00
parent 9e3d506651
commit 8aa3d0c047

View file

@ -593,8 +593,9 @@ class BaseXMPP(XMLStream):
if not connections and not self.roster[jid]['in_roster']:
del self.roster[jid]
if not was_offline:
self.event("got_offline", presence)
if was_offline:
else:
return False
name = '(%s) ' % name if name else ''