Mercurial > eldonilo > lightstring
diff plugins/presence.js @ 69:03ccf507ecda
Fix presence plugin.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Thu, 02 Feb 2012 01:56:28 +0100 |
parents | a118a7822410 |
children | bfa3c003fc1d |
line wrap: on
line diff
--- a/plugins/presence.js +++ b/plugins/presence.js @@ -25,7 +25,7 @@ Lightstring.plugins['presence'] = { stanzas: { - presence: function(object) { + out: function(object) { if (object) { var payloads = ""; var attributs = ""; @@ -54,8 +54,8 @@ }, }, methods: { - presence: function(aObject) { - this.send(Lightstring.stanzas.presence(aObject)); + send: function(aObject) { + this.send(Lightstring.stanzas.presence.out(aObject)); } } };