mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-06-12 07:34:41 +02:00
* Don't blow up @ message network record() if no network configured for areaTag
* Remove console.log() of message persist; use proper client.log
This commit is contained in:
parent
a49b510f31
commit
98e6afa1af
2 changed files with 8 additions and 4 deletions
|
@ -357,7 +357,7 @@ function FTNMessageScanTossModule() {
|
||||||
|
|
||||||
// check paths, Addresses, etc.
|
// check paths, Addresses, etc.
|
||||||
this.isAreaConfigValid = function(areaConfig) {
|
this.isAreaConfigValid = function(areaConfig) {
|
||||||
if(!_.isString(areaConfig.tag) || !_.isString(areaConfig.network)) {
|
if(!areaConfig || !_.isString(areaConfig.tag) || !_.isString(areaConfig.network)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -25,7 +25,7 @@ function AreaPostFSEModule(options) {
|
||||||
// we're posting, so always start with 'edit' mode
|
// we're posting, so always start with 'edit' mode
|
||||||
this.editorMode = 'edit';
|
this.editorMode = 'edit';
|
||||||
|
|
||||||
this.menuMethods.editModeMenuSave = function(formData, extraArgs) {
|
this.menuMethods.editModeMenuSave = function() {
|
||||||
|
|
||||||
var msg;
|
var msg;
|
||||||
async.series(
|
async.series(
|
||||||
|
@ -49,9 +49,13 @@ function AreaPostFSEModule(options) {
|
||||||
if(err) {
|
if(err) {
|
||||||
// :TODO:... sooooo now what?
|
// :TODO:... sooooo now what?
|
||||||
} else {
|
} else {
|
||||||
console.log(msg); // :TODO: remove me -- probably log that one was saved, however.
|
// note: not logging 'from' here as it's part of client.log.xxxx()
|
||||||
|
self.client.log.info(
|
||||||
|
{ to : msg.toUserName, subject : msg.subject, uuid : msg.uuid },
|
||||||
|
'Message persisted'
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
self.nextMenu();
|
self.nextMenu();
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue