I don't know the best way to form this question, but here's the code I want to work:
case $MESSAGE in
?Trcx!~*PRIVMSG*[${Nick}|${AltNick}]*[nN][mM]ap*)
echo "Some Code";;
*)
echo "Some Other Code";;
esac
How would I make it work? The part that is not working is the [${Nick}|${AltNick}] I want the expression to be valid for both the $Nick and $AltNick var. Any help is greatly appreciated!