Skip to content

Remove or load admin_definitions.lua #455

@Dark-Dragon

Description

@Dark-Dragon

Which resource(s) have this problem?
admin

Describe the bug
admin_definitions.lua is not in the meta.xml and is therefore never loaded. Now currently the admin resource seems to only have minor issues without it, but having the file around but not loading it causes confusion. For instance #440 didn't properly fix #373, because it assumed the file was loaded.

It should therefore be decided whether the file can be safely removed (I think it's only essential in the admin2 resource) or implemented properly. At the very least the ADMIN_CHAT_MAXLENGTH global variable needs to be set elsewhere if the file is deemed redundant.

To Reproduce

  1. start admin
  2. see debug warning relating to ADMIN_CHAT_MAXLENGTH being nil
  3. find out it makes sense because the file which defines it is never loaded

Version
Client/Server 1.6
admin 1.5.9 (latest at the time of post despite version discrepancy)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions