Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

cleaned up all old API for modules

  • Loading branch information...
commit 9fe505da6ce8d9568d4931322e223c0216aff760 1 parent dbacc48
@julien51 julien51 authored
View
3  modules/offline.js
@@ -4,12 +4,9 @@ var Message = message.Message;
var ltx = require('ltx');
// http://xmpp.org/extensions/xep-0160.html
-exports.name = "offline";
-
function Offline() {
}
-exports.mod = Offline;
exports.configure = function(server, config) {
server.router.on("recipientOffline", function(stanza) {
if(stanza.is("message")) {
View
3  modules/roster.js
@@ -5,8 +5,6 @@ var RosterStorage = r.Roster;
var RosterItemStorage = r.RosterItem;
// http://xmpp.org/rfcs/rfc3921.html#roster
-exports.name = "roster";
-
/* Items have :
- key(jid)
- state
@@ -17,7 +15,6 @@ exports.name = "roster";
function Roster() {
}
-exports.mod = Roster;
exports.configure = function(server, config) {
server.on("connect", function(client) {
View
1  modules/vcard.js
@@ -17,7 +17,6 @@ function VCard(client) {
});
}
-exports.mod = VCard;
exports.configure = function(server, config) {
}
View
3  modules/websocket.js
@@ -4,8 +4,6 @@ var util = require('util');
var EventEmitter = require('events').EventEmitter;
-exports.name = "mod_websocket";
-
function WebsocketServer() {
}
@@ -48,7 +46,6 @@ WebsocketWrapper.prototype.write = function(data) {
this.ws.sendUTF(data);
}
-exports.mod = WebsocketServer;
exports.configure = function(server, config) {
if(config) {
config.port = typeof(config.port) != 'undefined' ? config.port : 5280;
Please sign in to comment.
Something went wrong with that request. Please try again.