menu channel,nicklist {
Show topic : echo -a $chan($chan).topic
}
If you want something a bit more advanced, see my
Scrolling TitlebarIt is designed to show the current topic of your active channel in the window titlebar, and it scrolls in case the topic is too long to fit.