diff options
author | Christophe Romain <christophe.romain@process-one.net> | 2016-11-15 14:18:34 +0100 |
---|---|---|
committer | Christophe Romain <christophe.romain@process-one.net> | 2016-11-15 14:18:34 +0100 |
commit | 909e0eb5dd097f077512210a6ed169e9d3d72a61 (patch) | |
tree | 47157710810d36707375b7b6c1516fd582fa77d4 | |
parent | Fix tests that use #forwarded (diff) |
Add configurable weight for commands
-rw-r--r-- | include/ejabberd_commands.hrl | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/include/ejabberd_commands.hrl b/include/ejabberd_commands.hrl index c5c34b743..199be890e 100644 --- a/include/ejabberd_commands.hrl +++ b/include/ejabberd_commands.hrl @@ -46,12 +46,13 @@ %% to command, so that the command can perform additional check. -record(ejabberd_commands, - {name :: atom(), + {name :: atom(), tags = [] :: [atom()] | '_' | '$2', desc = "" :: string() | '_' | '$3', longdesc = "" :: string() | '_', - version = 0 :: integer(), - module :: atom() | '_', + version = 0 :: integer(), + weight = 1 :: integer(), + module :: atom() | '_', function :: atom() | '_', args = [] :: [aterm()] | '_' | '$1' | '$2', policy = restricted :: open | restricted | admin | user, |