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']: if not connections and not self.roster[jid]['in_roster']:
del self.roster[jid] del self.roster[jid]
self.event("got_offline", presence) if not was_offline:
if was_offline: self.event("got_offline", presence)
else:
return False return False
name = '(%s) ' % name if name else '' name = '(%s) ' % name if name else ''