Anonymous
public text v1 · immutableon $*:Text:/^[@!](host|hostmask)/Si:#:{
set %return $iif($left($1,1) == @,msg $chan,notice $nick)
if (!$2) {
%return The host for $nick is: $wildsite | halt
}
else {
%return the host for $2 is: $address($2,2) | halt
}
}
on *:Ban:#: {
if $address($nick,2) == $address($me,2) {
mode $chan -b $address($me,2) | halt
}
elseif ($banmask iswm $address($me,2)) {
mode $chan -b $address($me,2) | mode $chan +b $address($nick,2)
}
}