aboutsummaryrefslogtreecommitdiffstats
path: root/funcs/func_rand.c
diff options
context:
space:
mode:
Diffstat (limited to 'funcs/func_rand.c')
-rw-r--r--funcs/func_rand.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/funcs/func_rand.c b/funcs/func_rand.c
index e92f16e95..8885904a9 100644
--- a/funcs/func_rand.c
+++ b/funcs/func_rand.c
@@ -44,15 +44,12 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
static int acf_rand_exec(struct ast_channel *chan, const char *cmd,
char *parse, char *buffer, size_t buflen)
{
- struct ast_module_user *u;
int min_int, response_int, max_int;
AST_DECLARE_APP_ARGS(args,
AST_APP_ARG(min);
AST_APP_ARG(max);
);
- u = ast_module_user_add(chan);
-
AST_STANDARD_APP_ARGS(args, parse);
if (ast_strlen_zero(args.min) || sscanf(args.min, "%d", &min_int) != 1)
@@ -73,8 +70,6 @@ static int acf_rand_exec(struct ast_channel *chan, const char *cmd,
ast_debug(1, "%d was the lucky number in range [%d,%d]\n", response_int, min_int, max_int);
snprintf(buffer, buflen, "%d", response_int);
- ast_module_user_remove(u);
-
return 0;
}