Heres what i made for mIRC i hope you guys like it all you do is right click in the nick sections and click lock/unlock and click what you want please dont edit the script or say its yours thx
;;;;;;;;;;;;;;;;;;;;;;;;;
;; ;;
;; Made by: Jackster35 ;;
;; ;;
;;;;;;;;;;;;;;;;;;;;;;;;;
menu nicklist {
Lock/Unlock
.Lock: /mode $chan +smi | echo $chan locked | msg $chan $chan locked
.unlock: /mode $chan -smi | echo $chan Unlocked | msg $chan $chan unlocked
.About: echo 4Lock/unlock Made by Jackster35 | msg $chan Lock/Unlock made by: Jackster35
}
MagicRevealer09, jackster35-1's script is popup-menu based and has nothing to do with the on text event you're suggesting.
For your suggestion, I'd do this if I were you:
on $@1:TEXT:/!(un)?(lock)$/iS:#YourChannel: {
if ($nick isop #) {
var %+ $iif(m !isincs $chan(#).mode,+), %- $iif(m isincs $chan(#).mode,-)
mode # $replace($regml(1),un,%-,lock,%+) $+ m
}
}
You also have to make sure the +m has been set or unset, or else some ops may abuse it by way of flooding...just in case.