@RusselB: Doesn't work as expected.

Quote:
Joe_Dean · !hget Joe_Dean
Naed · Joe_Dean's IPs are 76.106.215.49
Joe_Dean · !hget 76.106.215.49
Naed · No match found for 76.106.215.49
Joe_Dean · !hget 76.106.215
Naed · No match found for 76.106.215
Joe_Dean · !hget 76.106
Naed · No match found for 76.106
Joe_Dean · !hget 76
Naed · Matches for 76 are:
Naed · Guest769
Naed · t12P76G
Naed · kwiatu1767
Naed · t12P76Gnew


- Doesn't show names using my IP when I reference my IP.
- Doesn't support wildcard searches (also it kinda does when you only specify the first octet, but still doesn't show all names using that range).

@genius: I really appreciate the help and it sounded like a great idea, but I don't think I like it so much. I also believe there's something wrong in your code. It returns the same name twice sometimes and also returns IP addresses when I reference a range. Plus, it returns every other name using the IP except mine.

Bah, this shit is confusing the heck out of me. There isn't a simpler way? My original idea was to store the nicks as the table items and the IP's as the values separated by commas (if there are multiple IP's). How do I do a wildcard search in the value and return the item name? Would make things much much easier.