}
addFriend(entries[item].getAttribute('jid'), nick);
}
+ connection.addHandler(_cbPEP, NS_PEP, 'message');
+ var initialPresence = $pres().c('c', {xmlns: NS_CAPS, hash: 'sha-1', node: 'http://jabber.babelmonkeys.de', ver: genCaps()}).up();
+ connection.send(initialPresence.tree());
+
return false;
}
} else if (status == Strophe.Status.CONNECTED) {
log('Strophe is connected.');
getRoster();
- connection.addHandler(_cbPEP, NS_PEP, 'message');
connection.addHandler(_cbDisco, Strophe.NS.DISCO_INFO, 'iq', 'get');
- var initialPresence = $pres().c('c', {xmlns: NS_CAPS, hash: 'sha-1', node: 'http://jabber.babelmonkeys.de', ver: genCaps()}).up();
- connection.send(initialPresence.tree());
}
}