You also add a spam protection using timers and vars, or some other techniquie. AND add an enable/disable command for OP's.
if ($nick isop $chan) || if ($nick ishop $chan) {
That might work.