I have a bot scripted to run on the same computer as I'm on. For commands meant for me only, I run a simple hostmask check to see if the user is me or not. The function is:
;CHECKS TO MAKE SURE IT'S ME
alias isme {
if ($address($1,2) == $address($me,2)) {
return $true
}
return $false
}
The bug comes into play when the bot is disconnected and reconnected to a server (due to a netsplit, manual reconnect, etc.). The bot seems to be no longer to find it's own address. It returns the following:
[19:41:02] -RangerBot- Address mismatch; You aren't my owner!!
[19:41:04] -RangerBot- You: *!*@159.178.254.37
[19:41:06] -RangerBot- Me:
No address. The only solution is to restart mIRC. Is there something I'm doing wrong?