Mercurial > eldonilo > lightstring
comparison plugins/presence.js @ 106:c06ec02217ee
many changes
author | Sonny Piers <sonny@fastmail.net> |
---|---|
date | Tue, 26 Jun 2012 12:02:14 +0200 |
parents | 7f4e43d6cb15 |
children | 5cb4733c5189 |
comparison
equal
deleted
inserted
replaced
105:fb50311997b5 | 106:c06ec02217ee |
---|---|
19 | 19 |
20 //////////// | 20 //////////// |
21 //Presence// http://xmpp.org/rfcs/rfc6121.html#presence | 21 //Presence// http://xmpp.org/rfcs/rfc6121.html#presence |
22 //////////// | 22 //////////// |
23 (function() { | 23 (function() { |
24 var legal_types = ['error', 'probe', 'subscribe', 'subscribed', 'unavailable', 'unsubscribe', 'unsubscribed']; | 24 var legal_types = [ |
25 'error', | |
26 'probe', | |
27 'subscribe', | |
28 'subscribed', | |
29 'unavailable', | |
30 'unsubscribe', | |
31 'unsubscribed' | |
32 ]; | |
25 | 33 |
26 Lightstring.plugins['presence'] = { | 34 Lightstring.plugins['presence'] = { |
27 stanzas: { | 35 stanzas: { |
28 out: function(object) { | 36 out: function(object) { |
29 if (object) { | 37 if (object) { |