summaryrefslogtreecommitdiff
path: root/sleekxmpp
diff options
context:
space:
mode:
authorLance Stout <lancestout@gmail.com>2012-03-10 10:19:43 -0800
committerLance Stout <lancestout@gmail.com>2012-03-10 10:19:43 -0800
commitec044affd4abae4c5b9ca60bbf0caa77e1efbb5c (patch)
treeda3fb5afedabc4094920cdce19d51a9e8e05e9ad /sleekxmpp
parentaf399450095f52eb953cb2099523024cb415dc5a (diff)
downloadslixmpp-ec044affd4abae4c5b9ca60bbf0caa77e1efbb5c.tar.gz
slixmpp-ec044affd4abae4c5b9ca60bbf0caa77e1efbb5c.tar.bz2
slixmpp-ec044affd4abae4c5b9ca60bbf0caa77e1efbb5c.tar.xz
slixmpp-ec044affd4abae4c5b9ca60bbf0caa77e1efbb5c.zip
Only auto-broadcast caps changes after a session has started.
Diffstat (limited to 'sleekxmpp')
-rw-r--r--sleekxmpp/plugins/xep_0115/caps.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sleekxmpp/plugins/xep_0115/caps.py b/sleekxmpp/plugins/xep_0115/caps.py
index 1f3be4d6..7cf64031 100644
--- a/sleekxmpp/plugins/xep_0115/caps.py
+++ b/sleekxmpp/plugins/xep_0115/caps.py
@@ -258,7 +258,7 @@ class xep_0115(base_plugin):
self.cache_caps(ver, info)
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
# can just send a normal presence stanza. If we have, then
# we will send presence to each contact individually so