comparison modules/mod_publish_message.js @ 41:bc717575e66a

Much better handling of modules.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Sun, 20 Feb 2011 15:51:12 +0100
parents 6697f394301f
children 023f767662d3
comparison
equal deleted inserted replaced
40:741110cdcfcf 41:bc717575e66a
1 var config = require('../configuration');
2 var storage = require('../storage');
3 var notifs = require('../notifs');
4 var errors = require('../errors');
5 var makeError = errors.makeError;
6 var fdsq = require('../fdsq');
7 var toBareJID = fdsq.toBareJID;
8 var NS = require('../namespaces');
9 var xmpp = require('xmpp');
10
11 exports.publishMessage = { 1 exports.publishMessage = {
12 stanza: 'message', 2 stanza: 'message',
13 child: 'body', 3 child: 'body',
14 func: function(response, stanza, request, to, from) { 4 func: function(response, stanza, request, to, from) {
15 if (!config.enabled('publish')) 5 if (!config.enabled('publish'))