This is only possible through the actual application. Most twitch users will use the website to connect to the channel instead, which doesn't support this feature.
I guess something like this would do. I'm sure there's a better way though.
on *:text:!t *:#: {
var %userlist $nick(#,0)
while (%userlist) {
var %user $nick(#,%userlist)
if ($2 isin %user) { code goes here }
dec %userlist
}
}
Edit: It won't print out an error if there are more than one user, it will do the code for both. Unless you specify to break after the first match.
You can print the value yourself and compare it when the loop is over if you want to have a message for each match.