Permalink
Browse files

cleaned up all old API for modules

  • Loading branch information...
1 parent 9fe505d commit 9ab0fd2d12e15f91a4c8c674f75c41fde40828ad @julien51 julien51 committed Dec 4, 2011
Showing with 0 additions and 8 deletions.
  1. +0 −3 modules/disco_info.js
  2. +0 −3 modules/logger.js
  3. +0 −2 modules/presence.js
@@ -4,12 +4,9 @@ var ltx = require('ltx');
// XEP-0030: Service Discovery
// http://xmpp.org/extensions/xep-0030.html
-exports.name = "mod_disco_info";
-
function DiscoInfo() {
}
-exports.mod = DiscoInfo;
exports.configure = function(server, config) {
server.on('connect', function(client) {
client.on('stanza', function(stz) {
View
@@ -2,16 +2,13 @@ var xmpp = require('node-xmpp');
var logger = require('winston');
// http://xmpp.org/extensions/xep-0160.html
-exports.name = "logger";
-
function format_log(client, message) {
return client.streamId + " : " + message
}
function Logger() {
}
-exports.mod = Logger;
exports.configure = function(server, config) {
// Config contains the configuration for the logger facility!
// The logger relies purely on events...
View
@@ -2,7 +2,6 @@ var xmpp = require('node-xmpp');
var ltx = require('ltx');
// http://xmpp.org/extensions/xep-0160.html
-exports.name = "presence";
// TODO
// Deal with 5.1.4. Directed Presence.
@@ -114,7 +113,6 @@ function Presence() {
});
}
-exports.mod = Presence;
exports.configure = function(server, config) {
server.router.on("recipientOffline", function(stanza) {
if(stanza.is("presence")) {

0 comments on commit 9ab0fd2

Please sign in to comment.