allow wildcard in reserved_channels list

This commit is contained in:
Mike Macgirvin 2023-07-14 07:05:58 +10:00
parent 08aebcb8d4
commit 746ebc0931

View file

@ -2516,7 +2516,13 @@ function check_webbie($arr)
}
foreach ($arr as $x) {
$y = legal_webbie($x);
if (! in_array($y, $taken)) {
$found = false;
foreach ($taken as $took) {
if (fnmatch($took,$y)) {
$found = true;
}
}
if (! $found) {
return $y;
}
}