He could do it without the alias like this:
on *:SNOTICE:*whois on you*: {
if (!%x) { set -u10 %x on
var %o $replacecs($usermode,N,Network Admin,a,Services Admin,A,Server Admin,C,CoAdmin,o,Global Operator,O,Local Operator)
echo -a [ALERT] $2 ( $address($2,2) ) did a whois on you on server [ $server ] at [ $time(.:h:nn:sstt:.) , $date ] .
inc %now
NOTICE $2 Hi there $2 $+ . I am an Oper on this server with Level of %o $+ . Can I help you with anything?
}
}