It seems I forgot to add a check to see if the item existed in the hash table..

Code:
On @*:Topic:#: {
  if (($nick != $me) && (!$hfind(topiclock_friends,$nick))) {
    if ($hfind(topiclock,$chan)) {
    topic $chan $hget(topiclock,$chan)
    hsave -i topiclock topiclock.hsh
    }
  }
}


And you're welcome. smile