In raws, $1 is your nick, $2 is the channel (target of an event), $3- is the data.

Code:
raw 332:*:{ 
  echo $2 14[14 $+ $time(hh:nntt) $+ 14] 7* Topic is ' $+ $3- $+ '
  halt
}

raw 333:*:{ 
  echo $2 14[14 $+ $time(hh:nntt) $+ 14] 7* Set by $3 on $asctime($4)
  halt
}