Software /
code /
prosody-modules
Diff
mod_adhoc/adhoc/adhoc.lib.lua @ 43:adc9eff8adb2
mod_adhoc, mod_adhoc_cmd_admin: Show only commands they may execute to the user
author | Florian Zeitz <florob@babelmonkeys.de> |
---|---|
date | Fri, 16 Oct 2009 01:36:04 +0200 |
parent | 36:58d326d86a9a |
child | 121:a9898f13c89e |
line wrap: on
line diff
--- a/mod_adhoc/adhoc/adhoc.lib.lua Thu Oct 15 11:38:57 2009 +0200 +++ b/mod_adhoc/adhoc/adhoc.lib.lua Fri Oct 16 01:36:04 2009 +0200 @@ -12,8 +12,8 @@ return cmd; end -function _M.new(name, node, handler) - return { name = name, node = node, handler = handler, cmdtag = _cmdtag }; +function _M.new(name, node, handler, permission) + return { name = name, node = node, handler = handler, cmdtag = _cmdtag, permission = (permission or "user") }; end return _M;