]> granicus.if.org Git - ejabberd/commitdiff
Add configurable weight for commands
authorChristophe Romain <christophe.romain@process-one.net>
Tue, 15 Nov 2016 13:18:34 +0000 (14:18 +0100)
committerChristophe Romain <christophe.romain@process-one.net>
Tue, 15 Nov 2016 13:18:34 +0000 (14:18 +0100)
include/ejabberd_commands.hrl

index c5c34b743d20627646892d0261e8c58c78ae1091..199be890e3f539543e6e021a9f096c2e0fa02d45 100644 (file)
 %% 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,