From 909e0eb5dd097f077512210a6ed169e9d3d72a61 Mon Sep 17 00:00:00 2001 From: Christophe Romain Date: Tue, 15 Nov 2016 14:18:34 +0100 Subject: [PATCH] Add configurable weight for commands --- include/ejabberd_commands.hrl | 7 ++++--- 1 file 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,