Just to let you know...
If ($strip($1) == +b) mode $chan +b $adress ($2,4)
isn't it $address with 2 D's
also when you post a script if you see this:
}
}
for your end closing brackets that is a tell tell sign you have an error in your script.
You should only have a single close bracket at the end of all scripts.
And fellow scripters is my two cents worth.