make sure a reponse is sent when setting the EventMask to on (bug #4799)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6214 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Russell Bryant
2005-07-25 22:58:34 +00:00
parent f358db3d43
commit eb7f5e8d0b

View File

@@ -402,7 +402,7 @@ static int ast_strings_to_mask(char *string)
else if (!strcasecmp(string, "off") || ast_false(string))
ret = 0;
else if (!strcasecmp(string, "on") || ast_true(string))
ret = -1;
ret = 1;
else {
ret = 0;
for (x=0; x<sizeof(perms) / sizeof(perms[0]); x++) {