$ip refers to your bots ip. you can't really look up users by ip-- you can *try* to with the /who command but it does not return results for users who are +i, which is usually about 95% of the users logged on.