Changes in commands.c [8258ea5:3b9ca71]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
commands.c
r8258ea5 r3b9ca71 1604 1604 if (v == NULL) { 1605 1605 if (!silent) owl_function_error("Unknown variable '%s'", var); 1606 } else if (requirebool && owl_variable_get_type(v) != OWL_VARIABLE_BOOL) {1606 } else if (requirebool && !v->takes_on_off) { 1607 1607 if (!silent) owl_function_error("Variable '%s' is not a boolean", var); 1608 1608 } else { … … 1633 1633 if (v == NULL) { 1634 1634 if (!silent) owl_function_error("Unknown variable '%s'", var); 1635 } else if ( owl_variable_get_type(v) != OWL_VARIABLE_BOOL) {1635 } else if (!v->takes_on_off) { 1636 1636 if (!silent) owl_function_error("Variable '%s' is not a boolean", var); 1637 1637 } else {
Note: See TracChangeset
for help on using the changeset viewer.