It's actually meant to be a hostmask checker.
Rather found a solution using an example, but here is what I have:
alias hostmask.enforce.chan return #chan1,#chan2
on *:JOIN:#:{
if ($nick != $me) && ($istok($hostmask.enforce.chan,$chan,44)) {
hostmask-check $nick $chan
}
}
alias hostmask-check {
var %mask = $address($1,2)
if (*!*@*.users.ircserver.org iswm %mask) {
echo -st 07 $+ $1 05(07 $+ %mask $+ 05) has joined07 $2 05- Hostmask approved.
echo -s -
}
else {
.msg $nick 04*** WARNING $nick *** 05Your current hostmask is not allowed in $chan $+ .
.msg $nick 05You have 5 minutes to solve the problem.
}
}
In that last else statement, I want to include a second warning, and an eventual kick.
Unless they complied obviously, and then drop the 2nd warning, or kick.
Any idea's?