# HG changeset patch # User Emmanuel Gil Peyrot # Date 1328144188 -3600 # Node ID 03ccf507ecda30873e5c100e45dabffd5deff740 # Parent e1ccfb58022875a396cb9a19ef8cd1b924379be5 Fix presence plugin. diff --git a/plugins/presence.js b/plugins/presence.js --- 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)); } } };