All pastes #754109 Raw Edit

Something

public text v1 · immutable
#754109 ·published 2007-10-29 19:54 UTC
rendered paste body
on *:MODE:#stupidscript:{
  if ($left($1-,1) == -) { 
    set %mode $right($1-,-1)
    mode $chan + $+ %mode 
  }
  elseif ($left($1-,1) == +) { 
    set %mode $right($1-,-1)
    mode $chan - $+ %mode
  }
}


Guess what happens?
it just loops -.-
how would i fix that?