I have created complicated scripts such as that, and as for the $1 $2 being other things... That's not how I found it.
;$1 = modes,$nick = User,$chan = Location
ON *:RAWMODE:#: {
var %temp,%i = 0,%x = 1
while (%i < $len($1)) {
inc %i
if ($mid($1,%i,1) == +) { %temp = + | continue }
if ($mid($1,%i,1) == -) { %temp = - | continue }
if (%temp == +) {
if ($mid($1,%i,1) isin beIlLkvhoaq) { inc %x }
;The above line is so you can match the correct word in the $2- part
if ($mid($1,%i,1) == a) {
;Here we have ON PROTECT
;to get the corresponding NICK you would use [ [ $ $+ %x ] ]
}
;End of +
}
if (%temp == -) {
if ($mid($1,%i,1) isin beIkvhoaq) { inc %x }
;Same as before but some don't require/show the following parameter
if ($mid($1,%i,1) == a) {
;Here we have ON DEPROTECT
}
;End of -
}
;End of WHILE
}
;End of EVENT
}
Atleast that's how I was able to manually control all bans and compare them to a list of nick!user@hosts that I personally wouldn't allow
I'm just saying that it would be nice to be able to write them like ON *:OP:#:
Meh, thanks for your time