something with "/who $active %nf" where an "h" in the result means the nick is 'here' meaning not away could help