You could replace
menu channel,nicklist,menubar,status {
with
menu * {
but other than that, a great script.