I have an idea. This may prevail to accomplish the wildcard match:
on !@*:rawmode:#:{
var %b = 1
var %c = *!cDn@*|*2nd@*|*!*3rd@*|*!IDENT@*
while ($gettok(%c,%b,124)) {
if ($wildtok($1-,$v1,1,124)) {
mode # -b $v1
}
inc %b
}
}
on @*:ban:#:{
var %? = 1
while (%? <= $ulist(*,100,0)) {
if ($banmask iswm $ialchan($ulist(*,100,%?),#,1)) {
mode # -b $v1
}
inc %?
}
}
You basically add the keyword of any variation of the wildcard addresses as shown under the rawmode event, divided with a pipe for each one. If the ban mask consists of the keyword, the script will then remove the ban for you.