on *:sockread:VIPCheck*: {
if ($sockerr == 3) { echo -tac Highlight * error on connected socket occurred for $sockname ( $sock($sockname).wserr ) | halt }
if ($sockerr) { echo -tac Highlight * Unknown sock error for $sockname | halt }
var %data
while (1) {
sockread %data
if (!$sockbr) break
if ($sockerr == 3) { echo -tac Highlight * error on connected socket occurred for $sockname ( $sock($sockname).wserr ) | halt }
if ($sockerr) { echo -tac Highlight * Unknown sock error for $sockname | halt }
if (($regex(%data,/<user(?: (opped|voiced)="true"|())>([^<]+)<\/user>/)) && ($istok($gettok($sock($sockname).mark,2-,32),$regml(2),32))) {
if (($regml(1) == opped) && ($me isop $gettok($sock($sockname).mark,1,32)) && ($regml(2) ison $v2) && ($v1 !isop $v2)) .mode $v2 +o $v1
}
}
}