I'm real curious why you used hashtables to store 3 things master me?
Also, why did you put 50 in the hmake. That will use enough memory for 500 records.
You might want to consider using sockmark or even using global variables would be better that that.
All of this -->> [ $+ [ %sckid ] ] Can also be eliminated if you set the variable with "clan." in the first place.
var %sckid = $+(clan.,$right($ticks,6))
No idea what the %ml is for. It doesn't do anything.
Working code though :)