mIRC Homepage
Posted By: Armada $hfind issue - 27/02/05 07:48 PM
Not sure if this is a bug or Im just seeing it wrong but here goes. Im writing a script that tracks nicks and their hosts. Im dinking around and I have a entry
sssss *!*@IRChat-313F98A5.brhm.adsl.virgin.net
in a hashtable Now I go to try to get that info and I use $hfind
//echo -a $hfind(NickTracker,*!*@IRChat-313F98A5.brhm.adsl.virgin.net,0)
Echos 0, now I think well maybe the thing didnt go in right but when I do
//echo -a $hfind(NickTracker,*!*@IRChat-313F98A5.brhm.adsl.virgin.net,1)
I get the insufficent parameters so I add data to the end
//echo -a $hfind(NickTracker,*!*@IRChat-313F98A5.brhm.adsl.virgin.net,1).data
and I get sssss
Shouldnt the 0 come up with 1? saying I have one entry with that in it? Or am i just seeing this wrong?
Posted By: Hrung Re: $hfind issue - 27/02/05 07:59 PM
By default, $hfind looks for an item name that matches the wildcard text. You are looking for values that match the wildcard, so you need the .data property. Try this:

//echo -a $hfind(NickTracker,*!*@IRChat-313F98A5.brhm.adsl.virgin.net,0).data

It is simply your first //echo with .data at the end.
Posted By: Armada Re: $hfind issue - 27/02/05 08:00 PM
Ahh thank you im an idiot
© mIRC Discussion Forums