raw 319:*: {
echo 1: $1 2: $2 3: $3 4-: $4-
; This will show you the value of each string.
set %usrtotnumopdchns %match($3,@,0,32) ; change $3 accordingly
set %usrtotnumopdchns.org %usrtotnumopdchns
while (%usrtotnumopdchns) {
set %useropedchan %match($2,@,%usertotalopedchans,32)
set %totaluseropedchans $addtok(%totaluseropedchans,%useropedchan,32)
dec %usrtotnumopdchns
}
echo -s Channels $nick is op'd on %usrtotnumopdchns.org : %totaluseropedchans
%unset %totaluseropedchans
}