on *:nick: {
if (!$istok($remove($chan(#yourchan).topic,44),$nick,32)) { return }
var %topic = $remove($chan(#yourchan).topic,$nick $+ $chr(44),$nick)
var %topic = $iif($right(%topic,1) == $chr(44),$left(%topic,-1),%topic)
if ($gettok(%topic,2,58) == $null) { var %topic = Available: $newnick }
else var %topic = %topic $+ , $newnick
topic #yourchan %topic
}