Interesting use of hashtables Riffpilgrim :)
I was just curious why you didn't just use /Sockmark
Your code looks nice and neat except for this redundancy.
--->> $+(durl.,%dedi) <<---
You use it 6 times so it should be a variable like %sockname
Since %dedi is only used with $+(durl.,%dedi)
I would suggest something like this
var %sockname $+(durl.,$right($ticks,5)),%whom $2
And then just use %sockname instead of $+(durl.,%dedi)
Good working code though Riffpilgrim :)