Fix startup issues with components using caps and vcards.

This commit is contained in:
Lance Stout
2013-01-02 17:04:27 -08:00
parent 597eb1779c
commit 91dc58d967
2 changed files with 14 additions and 4 deletions

View File

@@ -290,7 +290,7 @@ class XEP_0115(BasePlugin):
# can just send a normal presence stanza. If we have, then
# we will send presence to each contact individually so
# that we don't clobber existing statuses.
directed = False
directed = False or self.xmpp.is_component
for contact in self.xmpp.roster[jid]:
if self.xmpp.roster[jid][contact].last_status is not None:
directed = True