Another mistake...

Change topic $chan $hfind(topiclock,$chan) to topic $chan $hget(topiclock,$chan)

-Andy