on *:text:@time *:#: { if ($2 ison $chan) { ctcp $2 time set %chan $chan msg %chan $2 $+ 's local date/time is %timeresponse unset %timeresponse $2- halt } else { msg $chan $2 isn't on the current channel( $+ $chan $+ ) } } on *:CtcpReply:time*: { set %timeresponse $2- } }