Based on your format I guess you want something like this:

Code
; [16:23:20] |---> Server: *.undernet.org The Undernet Underworld
raw 312:*: { 
  haltdef
  window @whois
  echo @whois $timestamp 14|---> Server: $3- 
} 


If you want to look at the raw output:

Code
/debug @debug


Turn off debugging:

Code
/debug off



You only need the "window @whois" in the raw 311. All the others (including mine) are not needed since the window is already created when the whois is started.