I found the fix after looking over other scripts and changed the commands to look something this this:

Code:
if (%commands.setting [ $+ [ $chan ] ] == OFF) { return }