Ident Based kick/ban upon joining
Platform: mIRC
Published Nov 22, 2009
Updated Nov 22, 2009
The script compares the user's ident on joining, and checks that user's ident against other idents determined by the script. If the ident is flagged as "bad" the user is kicked and there is a ban placed on that user's ident. Other "bad idents" can be added, simply use the same format under the BadIdentCheck alias, where "Guest" is the bad ident.
alias GetIdent {
var %nick-ident = $remove($gettok($address($1,3),1,$asc(@)),*!*)
return %nick-ident
}
alias BadIdentCheck {
if ($1 == badident) {
return $true
}
elseif ($1 == Guest) {
return $true
}
else {
return $false
}
}
ON 1:JOIN:#: {
if ($nick != $me) && ($me isop $chan) {
if ($BadIdentCheck($GetIdent($nick)) == $true) {
kick # $nick bad ident
mode # +b $+(*!,$GetIdent($nick),@*)
}
}
}