comparison plugins.js @ 16:6707f450549e

fix several problems
author Sonny Piers <sonny.piers@gmail.com>
date Mon, 16 Jan 2012 16:55:40 +0100
parents 08a8d8c4c324
children fc577e5b2f4a 7fcccf59e6ec
comparison
equal deleted inserted replaced
15:521962f10743 16:6707f450549e
13 ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 13 ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
14 WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 14 WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
15 ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 15 ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
16 OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 16 OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
17 */ 17 */
18
19 ////////////
20 //Presence// http://xmpp.org/rfcs/rfc6121.html#presence
21 ////////////
22 Lightstring.stanza.presence = function(aPriority) {
23 if(aPriority)
24 return "<presence><priority>"+aPriority+"</priority></presence>";
25 else
26 return "<presence/>";
27 };
28 Lightstring.presence = function(aConnection, aPriority) {
29 aConnection.send(Lightstring.stanza.presence(aPriority));
30 };
18 31
19 ////////// 32 //////////
20 //Roster// 33 //Roster//
21 ////////// 34 //////////
22 Lightstring.NS.roster = 'jabber:iq:roster'; 35 Lightstring.NS.roster = 'jabber:iq:roster';