If the snotice runs: " NICK did a /whois on you "
use "& did a /whois on you" for matchtext, and "$1" will be the nick. ("&" matches a single word, and "$N" will be the Nth word of the message).
on *:SNOTICE:& did a /whois on you: {
msg $1 /whois you as well, sir?
}
Now, I know that snotice in a different format (unreal IRCd): " *** NICK (user@host) did a /whois on you. "
Therefore I do parse this snotice per:
on *:SNOTICE:*: {
; - some code here, other snotices -
elseif ($4-8 === did a /whois on you.) {
- do stuff with $2-, where $2 is the nick of the whoising user -
}
; - more code here -
}