diff plugins/im.js @ 46:f23e4741a7c5

Fix im plugin.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Wed, 01 Feb 2012 00:38:01 +0100
parents 1506992c33e2
children c06ec02217ee
line wrap: on
line diff
--- a/plugins/im.js
+++ b/plugins/im.js
@@ -19,12 +19,13 @@
 //////
 //IM//
 //////
-Lightstring.stanza.message = {
-  normal: function(aTo, aSubject, aText) {
-    return "<message type='normal' to='"+aTo+"'><subject>"+aSubject+"</subject><body>"+aText+"</body></message>";
-  },
-  chat: function(aTo, aText) {
-    return "<message type='chat' to='"+aTo+"'><body>"+aText+"</body></message>";
+Lightstring.plugins['message'] = {
+  stanzas: {
+    normalMessage: function(aTo, aSubject, aText) {
+      return "<message type='normal' to='" + aTo + "'><subject>" + aSubject + "</subject><body>" + aText + "</body></message>";
+    },
+    chatMessage: function(aTo, aText) {
+      return "<message type='chat' to='" + aTo + "'><body>" + aText + "</body></message>";
+    }
   }
 };
-