Try this grin:

Code:
on !*:OP:#: { if (($opnick == $me) && (!$istok(%opthanks.exceptions, $chan, 44))) /msg $chan Thanks for op, $nick $+ ! }
menu channel {
  Op Exception
  .Add Channel $active: /opthnx_Add $active
  .Add Channel ???: /opthnx_Add $$?="Enter Channel Name:"
  .-
  .$submenu($opthnx_e($$1))
}
alias opthnx_e {
  if ($1 isin begin,end) return -
  else if ($gettok(%opthanks.exceptions, $1, 44)) {
    var %chan = $gettok(%opthanks.exceptions, $1, 44)
    return Remove %chan : /opthnx_rem %chan
  }
}
alias opthnx_add {
  /set %opthanks.exceptions $addtok(%opthanks.exceptions, $1, 44)
}
alias opthnx_rem {
  /set %opthanks.exceptions $remtok(%opthanks.exceptions, $1, 1, 44)
}


-KingTomato