mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-06-11 23:24:43 +02:00
* Cleanup related to message area IDs / database -> JSON format and names
This commit is contained in:
parent
35de0a2487
commit
d69d00a14b
6 changed files with 22 additions and 160 deletions
|
@ -59,14 +59,11 @@ function AreaPostFSEModule(options) {
|
|||
require('util').inherits(AreaPostFSEModule, FullScreenEditorModule);
|
||||
|
||||
AreaPostFSEModule.prototype.enter = function(client) {
|
||||
//
|
||||
// If messageAreaId is passed in extraArgs, use it. Otherwise, look
|
||||
// to the client user for current area ID
|
||||
//
|
||||
if(_.isNumber(client.user.properties.message_area_id)) {
|
||||
this.messageAreaId = client.user.properties.message_area_id;
|
||||
}
|
||||
|
||||
if(_.isString(client.user.properties.message_area_name)) {
|
||||
this.messageAreaName = client.user.properties.message_area_name;
|
||||
}
|
||||
|
||||
AreaPostFSEModule.super_.prototype.enter.call(this, client);
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue