mirror of
https://github.com/correl/SleekXMPP.git
synced 2024-11-27 19:19:54 +00:00
Fixed got_offline triggering bug.
This commit is contained in:
parent
9e3d506651
commit
8aa3d0c047
1 changed files with 3 additions and 2 deletions
|
@ -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 ''
|
||||||
|
|
Loading…
Reference in a new issue