# HG changeset patch # User Emmanuel Gil Peyrot # Date 1328053081 -3600 # Node ID f23e4741a7c5b06953015d4e86978042dd9de3bd # Parent 063e31247e71cff61d75796bb8a634ef42555c1f Fix im plugin. diff --git a/plugins/im.js b/plugins/im.js --- a/plugins/im.js +++ b/plugins/im.js @@ -19,12 +19,13 @@ ////// //IM// ////// -Lightstring.stanza.message = { - normal: function(aTo, aSubject, aText) { - return ""+aSubject+""+aText+""; - }, - chat: function(aTo, aText) { - return ""+aText+""; +Lightstring.plugins['message'] = { + stanzas: { + normalMessage: function(aTo, aSubject, aText) { + return "" + aSubject + "" + aText + ""; + }, + chatMessage: function(aTo, aText) { + return "" + aText + ""; + } } }; -