There isn't a need for two sets of raw events. In that example when you do whois from onjoin $+(%,$cid,whois.,$nick) is set to the channel. Then if the $+(%,$cid,whois.,$nick) variable is set, the replies will be sent to the channel, if it isn't set it echoes to status.