alias ts {
  if ([$0]) {@s.ts.c=[$0]}{@s.ts.c=[$C]}
  ^on ^raw_irc "% 324 *" #
  ^on ^raw_irc "% 329 *" {
    timer -del 14850
    if ([$4]!=[0]) {
      s.echo $s.ts.c was created at $stime($4).
    }{s.echo Warning: $s.ts.c has a 0 TS.}
    ^on raw_irc -"% 324 *" ;^on raw_irc -"% 329 *" ;^on raw_irc -"% 403 *"
  }
  ^on -raw_irc "% 403 *" { timer -del 14850 }
  quote mode $s.ts.c
  timer -refnum 14850 10 {
    s.echo TimeStamp request failed - this server might not be running the
    s.echo TS3ow IRCD. Type "/version" and search for "TS3ow" to find out.
  }
}
