Only auto-broadcast caps changes after a session has started.
This commit is contained in:
parent
af39945009
commit
ec044affd4
@ -258,7 +258,7 @@ class xep_0115(base_plugin):
|
|||||||
self.cache_caps(ver, info)
|
self.cache_caps(ver, info)
|
||||||
self.assign_verstring(jid, ver)
|
self.assign_verstring(jid, ver)
|
||||||
|
|
||||||
if self.broadcast:
|
if self.xmpp.session_started_event.is_set() and self.broadcast:
|
||||||
# Check if we've sent directed presence. If we haven't, we
|
# Check if we've sent directed presence. If we haven't, we
|
||||||
# can just send a normal presence stanza. If we have, then
|
# can just send a normal presence stanza. If we have, then
|
||||||
# we will send presence to each contact individually so
|
# we will send presence to each contact individually so
|
||||||
|
Loading…
Reference in New Issue
Block a user