Add send node msg event
This commit is contained in:
parent
eec06e7004
commit
36d55a409e
|
@ -149,7 +149,7 @@ function initializeModules(cb) {
|
|||
return nextModule(null);
|
||||
}
|
||||
} catch(e) {
|
||||
Log.warn( { error : e }, 'Exception during "moduleInitialize"');
|
||||
Log.warn( { error : e.message, fullModulePath }, 'Exception during "moduleInitialize"');
|
||||
return nextModule(null);
|
||||
}
|
||||
},
|
||||
|
|
|
@ -12,6 +12,7 @@ const { getThemeArt } = require('./theme.js');
|
|||
const { pipeToAnsi } = require('./color_codes.js');
|
||||
const stringFormat = require('./string_format.js');
|
||||
const { renderStringLength } = require('./string_util.js');
|
||||
const Events = require('./events.js');
|
||||
|
||||
// deps
|
||||
const series = require('async/series');
|
||||
|
@ -37,7 +38,7 @@ const MciViewIds = {
|
|||
|
||||
customRangeStart : 10,
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
exports.getModule = class NodeMessageModule extends MenuModule {
|
||||
constructor(options) {
|
||||
|
@ -64,6 +65,8 @@ exports.getModule = class NodeMessageModule extends MenuModule {
|
|||
}
|
||||
}
|
||||
|
||||
Events.emit(Events.getSystemEvents().UserSendNodeMsg, { user : this.client.user } );
|
||||
|
||||
return this.prevMenu(cb);
|
||||
});
|
||||
},
|
||||
|
|
|
@ -355,7 +355,7 @@ class StatLog {
|
|||
systemEvents.NewUser,
|
||||
systemEvents.UserUpload, systemEvents.UserDownload,
|
||||
systemEvents.UserPostMessage, systemEvents.UserSendMail,
|
||||
systemEvents.UserRunDoor,
|
||||
systemEvents.UserRunDoor, systemEvents.UserSendNodeMsg,
|
||||
];
|
||||
|
||||
Events.addListenerMultipleEvents(interestedEvents, (eventName, event) => {
|
||||
|
|
|
@ -20,4 +20,5 @@ module.exports = {
|
|||
UserPostMessage : 'codes.l33t.enigma.system.user_post_msg', // { areaTag }
|
||||
UserSendMail : 'codes.l33t.enigma.system.user_send_mail',
|
||||
UserRunDoor : 'codes.l33t.enigma.system.user_run_door',
|
||||
UserSendNodeMsg : 'codes.l33t.enigma.system.user_send_node_msg',
|
||||
};
|
||||
|
|
|
@ -20,6 +20,7 @@ Available `config` block entries:
|
|||
* `userPostMsg`
|
||||
* `userSendMail`
|
||||
* `userRunDoor`
|
||||
* `userSendNodeMsg`
|
||||
* `actionIndicatorDefault`: Default indicator when an action is not set. Defaults to "-".
|
||||
|
||||
Remember that entries such as `actionIndicators` and `actionIndicatorDefault` may contain pipe color codes!
|
||||
|
@ -32,6 +33,6 @@ The following `itemFormat` object is provided to MCI 1 (ie: `%VM1`):
|
|||
* `ts`: Timestamp in `dateTimeFormat` format.
|
||||
* `location`: User's location.
|
||||
* `affiliation` or `affils`: Users affiliations.
|
||||
* `actions`: A string built by concatenating action indicators for a users logged in session. For example, given a indincator of `userDownload` mapped to "D", the string may be "-D----". The format was made popular on Amiga style boards.
|
||||
* `actions`: A string built by concatenating action indicators for a users logged in session. For example, given a indicator of `userDownload` mapped to "D", the string may be "-D----". The format was made popular on Amiga style boards.
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue