Here's for a specific nick, you would use the operator "=="
on *:JOIN:#lol,#newb: {
if ( $nick == NICK ) msg $chan LOL@ $nick
}
For a specific host
on *:JOIN:#lol,#newb: {
if ( $wildsite == *!*@host ) msg $chan LOL@ $nick
}
If you want to use wildcards for the nick/host, use "iswm"
on *:JOIN:#lol,#newb: {
if ( *NICK* iswm $nick ) msg $chan LOL@ $nick
}
See /help ==
/help iswm