All pastes #677164 Raw Edit

Stuff

public text v1 · immutable
#677164 ·published 2007-08-31 19:09 UTC
rendered paste body
on *:START: { 
  %*version.mode* =  off /on 
  %xc.mode = off / on
  echo -a 3,1.9:15NameOfScript %What.version9:3. 
} 
on *:EXIT: { unset %Mode.here %xc.version.here } 
on *:UNLOAD: { unset%.Mode.Here  %xc.version.here } 
on *:INPUT:#: { 
  If (!$inpaste) && (!$ctrlenter) && (%xc.mode = on) { 
    If ($me isop $active) || ($me ishop $active) {                         Can change to h/op voice etc.
      If ($left($1-,1) = -) || ($left($1-,1) = +) { 
        haltdef    Halt part not needed.
        If ($findtok(+v.+h.+o.+a.+q.+b.+c.+e.+I.+f.+i.+j.+k.+l.+m.+n.+p.+r.+s.+t.+z.+A.+C.+G.+M.+K.+L.+N.+O.+Q.+R.+S.+T.+V.+u.-v.-h.-o.-a.-q.-b.-c.-e.-I.-f.-i.-j.-k.-l.-m.-n.-p.-r.-s.-t.-z.-A.-C.-G.-M.-K.-L.-N.-O.-Q.-R.-S.-T.-V.-u,$left($1,2),0,46) > 0) { mode $active $1- }        Add in modes in here if u need.
        If ($findtok(+v.+h.+o.+a.+q.+b.+c.+e.+I.+f.+i.+j.+k.+l.+m.+n.+p.+r.+s.+t.+z.+A.+C.+G.+M.+K.+L.+N.+O.+Q.+R.+S.+T.+V.+u.-v.-h.-o.-a.-q.-b.-c.-e.-I.-f.-i.-j.-k.-l.-m.-n.-p.-r.-s.-t.-z.-A.-C.-G.-M.-K.-L.-N.-O.-Q.-R.-S.-T.-V.-u,$left($1,2),0,46) = 0) { echo -a 3,1.9:15" $+ $remove($1,-,+) $+ " Is an unknown mode to me9:3. }  Change to whatever you want it to be
      } 
    } 
  } 
} 
alias -l chg { 
  If (%xc.mode = on) { set %xc.mode off | echo -a 3,1.9:15NAMEOFSCRIPT %xc.version Mode-Off Off | halt } 
  If (%xc.mode = off) { set %xc.mode on | echo -a 3,1.9:15NameOfScript %xc.version Mode-On On | halt } 
} 
menu channel { 
  $iif(%xc.mode = on,$style(1)) Name.here:/chg 
}

Edit by sveN WOT