Hello,

I have a quick question for the pros here.

I have an ini file that is structured like this:

(Name of the file: "C:\mIRC\UserInfo.ini")

[UserInfo]
Nickname1=*!5f67d56b2beb4a8b8ff3433eea054532@*,123.123.123.123
Nickname2=*!ba61856984f923042acb2b540b6c787c@*,124.124.124.124
Nickname3=*!261aa8fae20cc56feb47907091edfa13@*,125.125.125.125



Example #1 (Searching by a Nickname)

I would like to have an alias like $search_ini(nickname1) that would echo me: Nickname1's address is: *!5f67d56b2beb4a8b8ff3433eea054532@* and their ip address is: 123.123.123.123.

Example #2 (Searching by a single value)

a.)
I would like to then have the alias $search_ini(123.123.123.123) would echo to me: The IP Address: 123.123.123.123 belongs to Nickname1.

b)
Same goes for $search_ini(*!5f67d56b2beb4a8b8ff3433eea054532@*) would echo back to me: The address: *!5f67d56b2beb4a8b8ff3433eea054532@* belongs to Nickname1

I really need your help on this, I can't find any example of manipulating data like anywhere else.

Thanks so much in advance,

Cheers,

Jay