mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-06-11 15:14:36 +02:00
* ServerModule's createServer() is now async
* Re-write of NNTP Message-ID <> internal message UUIDs
This commit is contained in:
parent
346815a4f2
commit
9d1815682d
11 changed files with 305 additions and 84 deletions
|
@ -1,15 +1,18 @@
|
|||
/* jslint node: true */
|
||||
'use strict';
|
||||
|
||||
var PluginModule = require('./plugin_module.js').PluginModule;
|
||||
const PluginModule = require('./plugin_module.js').PluginModule;
|
||||
|
||||
exports.ServerModule = ServerModule;
|
||||
exports.ServerModule = class ServerModule extends PluginModule {
|
||||
constructor(options) {
|
||||
super(options);
|
||||
}
|
||||
|
||||
function ServerModule() {
|
||||
PluginModule.call(this);
|
||||
}
|
||||
createServer(cb) {
|
||||
return cb(null);
|
||||
}
|
||||
|
||||
require('util').inherits(ServerModule, PluginModule);
|
||||
|
||||
ServerModule.prototype.createServer = function() {
|
||||
listen(cb) {
|
||||
return cb(null);
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue