alias c1 { return $+($chr(3),04,$1-) }
alias c2 { return $+($chr(3),09,$1-) }
alias c3 { return $+($chr(3),02,$1-) }
on $*:text:/^[!@](Nick|User)/Si:#:{
set %output msg $chan
userhost $2
}
raw 302:*: {
if ($2- == $null) {
%output $c3 $+ The user you were looking for is currently $c1 OFFLINE $c3 or you made a mistake in the spelling }
else {
tokenize $asc(=) $2-
%output $c3 $+ The user you were looking for is currently $c2 ONLINE $c3 with the host $c3 $+ - $replace($2-,$chr(43),$chr(32))
unset %display
}
}