Hi, I have quite a few scripts in my mIRC for my bot but some people want some of the features enabled, whereas others don't. I'm wondering if there is a way to only enable the scripts in some channels.

Code:
ON @*:TEXT:*:#: {
  IF (($len($1-) < 9) || ($nick isop #)) { RETURN }
  var %a = $regex($1-,/[A-Z]/Sg) / $regex($1-,/[^ ]/Sg)
  if (%a >= 0.8) {
    inc -e $+(%,caps,$cid,#,.,$site)
    if ($($+(%,caps,$cid,#,.,$site),2) > 3) { 
      msg $chan .timeout $nick 600
      msg $chan $nick has been timed out for 10 minutes for using excessive ammounts of caps.  
    unset $+(%,caps,$cid,#,.,$site) } 
    else msg $chan $nick $+ : Please use less caps, $ord($v1) warning.
  }
}


For instance, that is one of the scripts that I would like disabled in only some channels. I would like it so when someone types '!capsban on' into a specific channel, it enables it and '!capsban off' disables it. I can't think of a way to do this so any help would be greatly appreciated, if this makes no sense, please say and I will try and make it more clear.
Many thanks, Tom.