comparison 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
comparison
equal deleted inserted replaced
45:063e31247e71 46:f23e4741a7c5
17 */ 17 */
18 18
19 ////// 19 //////
20 //IM// 20 //IM//
21 ////// 21 //////
22 Lightstring.stanza.message = { 22 Lightstring.plugins['message'] = {
23 normal: function(aTo, aSubject, aText) { 23 stanzas: {
24 return "<message type='normal' to='"+aTo+"'><subject>"+aSubject+"</subject><body>"+aText+"</body></message>"; 24 normalMessage: function(aTo, aSubject, aText) {
25 }, 25 return "<message type='normal' to='" + aTo + "'><subject>" + aSubject + "</subject><body>" + aText + "</body></message>";
26 chat: function(aTo, aText) { 26 },
27 return "<message type='chat' to='"+aTo+"'><body>"+aText+"</body></message>"; 27 chatMessage: function(aTo, aText) {
28 return "<message type='chat' to='" + aTo + "'><body>" + aText + "</body></message>";
29 }
28 } 30 }
29 }; 31 };
30