#<command> Security and Addon.ini
I don't know if anyone else has had a problem with this, but there is an idiosyncrasy in the code for the #<command> which doesn't allow you to raise but not lower the security for the command.
For example, the #grid, #wp and #gassign are all defined as serverop commands and if you wanted to allow LeadGMs access to them, your only choice is to set their status to 200. If you want to change this and make it entirely driven by the addon.ini file, here are the changes. In Zone/Client.cpp Client::ChannelMessageReceived find Code:
if (admin >= 250 || admin==cmdlevel) Code:
if (NormalUser(&sep)) break; Code:
else { Code:
// else { If you want to set a default security for any command that was omitted go to common/database.cpp Database::CommandRequirement and find Code:
for(int i=0; i<maxcommandlevel; i++) Code:
for(int i=0; i<maxcommandlevel; i++) |
On thinking about it, this can also be fixed and the original intent maintained (which drives it by default status levels if it isn't in addon.ini) by doing the following:
In Zone/Client.cpp Client::ChannelMessageReceived find Code:
if (admin >= 250 || admin==cmdlevel) Code:
if (admin >= 250 || admin>=cmdlevel) |
All times are GMT -4. The time now is 12:28 AM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.