mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-24 16:23:40 +01:00
Add configurable weight for commands
This commit is contained in:
parent
e75dd17e2c
commit
909e0eb5dd
@ -46,12 +46,13 @@
|
|||||||
%% to command, so that the command can perform additional check.
|
%% to command, so that the command can perform additional check.
|
||||||
|
|
||||||
-record(ejabberd_commands,
|
-record(ejabberd_commands,
|
||||||
{name :: atom(),
|
{name :: atom(),
|
||||||
tags = [] :: [atom()] | '_' | '$2',
|
tags = [] :: [atom()] | '_' | '$2',
|
||||||
desc = "" :: string() | '_' | '$3',
|
desc = "" :: string() | '_' | '$3',
|
||||||
longdesc = "" :: string() | '_',
|
longdesc = "" :: string() | '_',
|
||||||
version = 0 :: integer(),
|
version = 0 :: integer(),
|
||||||
module :: atom() | '_',
|
weight = 1 :: integer(),
|
||||||
|
module :: atom() | '_',
|
||||||
function :: atom() | '_',
|
function :: atom() | '_',
|
||||||
args = [] :: [aterm()] | '_' | '$1' | '$2',
|
args = [] :: [aterm()] | '_' | '$1' | '$2',
|
||||||
policy = restricted :: open | restricted | admin | user,
|
policy = restricted :: open | restricted | admin | user,
|
||||||
|
Loading…
Reference in New Issue
Block a user