mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-08-02 07:51:52 +02:00
* Better form submit format
* Allow comments in menu.json
This commit is contained in:
parent
d1b0663b5d
commit
4c4b0de54c
7 changed files with 118 additions and 80 deletions
39
mods/logoff.js
Normal file
39
mods/logoff.js
Normal file
|
@ -0,0 +1,39 @@
|
|||
/* jslint node: true */
|
||||
'use strict';
|
||||
|
||||
var MenuModule = require('../core/menu_module.js').MenuModule;
|
||||
var ansi = require('../core/ansi_term.js');
|
||||
|
||||
exports.moduleInfo = {
|
||||
name : 'LogOff',
|
||||
desc : 'Log off / Goodbye Module',
|
||||
author : 'NuSkooler',
|
||||
};
|
||||
|
||||
exports.getModule = LogOffModule;
|
||||
|
||||
function LogOffModule(menuConfig) {
|
||||
MenuModule.call(this, menuConfig);
|
||||
}
|
||||
|
||||
require('util').inherits(LogOffModule, MenuModule);
|
||||
|
||||
LogOffModule.prototype.enter = function(client) {
|
||||
LogOffModule.super_.prototype.enter.call(this, client);
|
||||
};
|
||||
|
||||
LogOffModule.prototype.beforeArt = function() {
|
||||
LogOffModule.super_.prototype.beforeArt.call(this);
|
||||
|
||||
this.client.term.write(ansi.resetScreen());
|
||||
};
|
||||
|
||||
LogOffModule.prototype.mciReady = function(mciMap) {
|
||||
LogOffModule.super_.prototype.mciReady.call(this, mciMap);
|
||||
};
|
||||
|
||||
LogOffModule.prototype.finishedLoading = function() {
|
||||
LogOffModule.super_.prototype.finishedLoading.call(this);
|
||||
|
||||
this.client.end();
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue