!time [nick] displays the system time and date of the specified person.
!version [nick] shows what IRC client specified person is using.
Tested in irc.lucidchat.net.
on $*:TEXT:/^!(time|version) /Si:#: {
if (%flood [ $+ [ $+($site,$network) ] ]) { notice $nick 12You must wait04 $duration($v1) 12before you can use that again. | halt }
if (!$2) { notice $nick 12Syntax: 04 $+ $1 [nick] | halt }
var %i 1 | while ($comchan($2,%i)) {
if (!%cmd) var -g %cmd $regml(1), %nick $nick
inc %i
}
if (!%cmd) { notice $nick 4 $+ $me 12and 4 $+ $2 12have to be on the same channel. | halt }
ctcp $2 %cmd
set -z $+(%,flood,$site,$network) 10
}
on $*:CTCPREPLY:/^(time|version)*/Si: {
notice %nick $+(04,$nick, 12,$iif($1 = time,current time and date,using),: 04,$2-)
unset %cmd %nick
}
raw 492:*: {
notice %nick $+(4,$2,$chr(44) 12,$3-) | unset %cmd %nick
}