alias _xw.splice {
if ($1 == ?) {
if ($_isserv(xw) == $false) return 0
if ($istok(mode halfop dehalfop,$3,32)) return 0
if (($istok(voice devoice,$3,32)) && (u !isin $hget(pnp. $+ $cid,-servopt))) return 0
if ($_chanbot($2) !isop $2) return 0
if (u isin $hget(pnp. $+ $cid,-servopt)) {
if ($hget(pnp. $+ $cid,-xwacc.username)) {
var %acc = $readini($_cfg(pw.ini),n,xw- $+ $hget(pnp. $+ $cid,net),a $+ $2)
if (%acc >= 100) return 1
if ((%acc >= 75) && ($istok(ban unban,$3,32))) return 1
if ((%acc >= 50) && ($istok(kick topic,$3,32))) return 1
if ((%acc >= 25) && ($istok(voice devoice,$3,32))) return 1
}
}
elseif ($hget(pnp. $+ $cid,-xwacc. $+ $2)) return 1
return 0
}
goto $3
:kick | :topic | :op | :deop | :voice | :devoice | xw $upper($3) $2 $4- | return
:opme | xw OP $2 $4- | return
:unban | xw UNBAN $2 $4 | return
:ban | xw BAN $2 $4 336 75 $5-
}
|