elseif (!givewarning* iswm $3) {
if ($gus.level($1,$2) >= 10) {
if (%a == -1) mta.pm $1 $2 Error - Absent ID
else {
!writeini -n " $+ $scriptdir $+ warnings.ini" WARNINGS $mta.nick($1,%a) $calc($gus.warnings($1,%a)+1)
if ($gus.warnings($1,%a) >= 3) {
mta.text $1 $mta.nick($1,%a) has reached the warnings limit and will be banned!
mta.ban $1 %a
}
else mta.text $1 $mta.nick($1,%a) has got a warning! $calc(3-$gus.warnings($1,%a)) more warnings and he will be banned.
}
}
}
alias gus.warnings !return $iif($readini($scriptdir $+ warnings.ini,WARNINGS,$mta.nick($1,$2)),$v1,0)