Can someone help me with a on join ip checker?


Code:
on *:JOIN:$adress:*: {
if $adress() $read(IP.txt) {
echo Checked $adress this IP belongs to $getnick
   }
}