linuxdcpp-team team mailing list archive
-
linuxdcpp-team team
-
Mailing list archive
-
Message #03277
Re: [Question #144823]: Hub menu
Question #144823 on ADCH++ changed:
https://answers.launchpad.net/adchpp/+question/144823
Pirre proposed the following answer:
In your command table in the lua scripts you have a line in the bottom
like "protected = is_op, this variable "is_op" is defined in access.lua.
You are able to make different is_*** levels there that you then can
asign to your commands like
like first declaring
local level_stats = 5
and then the function
local function is_stats(c)
return has_level(c, level_stats)
end
gives you a new "level" is_stats that you can use to protect and show
commands to all users with level 5 and above :)
--
You received this question notification because you are a member of
Dcplusplus-team, which is an answer contact for ADCH++.