From: Christophe Romain Date: Tue, 15 Nov 2016 13:18:34 +0000 (+0100) Subject: Add configurable weight for commands X-Git-Tag: 16.12-beta1~49^2~10 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=909e0eb5dd097f077512210a6ed169e9d3d72a61;p=ejabberd Add configurable weight for commands --- 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,