raw *:* {
haltdef
if ($numeric == 329) {
set %:topic $chan($2).topic
set %:chan $2
if (!%:topic) { set %:topic no topic found }
_join
}
elseif ($numeric == 333) {
set %:setby $gettok($1-,3,32)
set %:time $asctime($gettok($1-,4,32))
}
alias _join {
echo %:chan $+($chr(91),%:chan,$chr(93),$chr(32),Topic,$chr(32),$chr(40),%:topic,$chr(41))
echo %:chan $+($chr(91),%:chan,$chr(93),$chr(32),Set,$chr(32),by,$chr(32),$chr(40),%:setby,$chr(41),$chr(32),At,$chr(32),$chr(40),%:time,$chr(41))
unset %:*
}