I have a large hash table saved as altnicks.dat. The table associates nicks with addresses and vice versa so I can monitor users as they change nicks.
Assume the following
/hmake hash 10
/hload hash altnicks.dat
Now, I want to find out how many nicks contain the string "grass", so I use
/echo -a $hfind(hash,*grass*,0,w)
and the number 22 is returned. Fine so far.
If I then load altnicks.dat into notepad++, and do a word count for "grass", I get 44 as the number of occurrences.
Furthermore, the command
/echo -a $hfind(hash,*summer*,0,w
returns zero, whereas notepad++ shows that there are 53 occurrences of "summer".
Am I using $hfind correctly, and/or what is a better approach to count the number of specific strings in a hash table?
Thanks.