on !*:NICK:#: {
if ($readini(airsoftbot.ini,$nick,logged) == IN) {
writeini airsoftbot.ini $nick logged OUT | notice $nick You have changed your nick you have been logged out.
}
}
the on nick event will recognize $nick as the nick who triggered the event
you need to use notice $newnick, to notice now the new nick, if not, it will return an error