mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-19 23:35:12 +00:00
allow wildcard in reserved_channels list
This commit is contained in:
parent
08aebcb8d4
commit
746ebc0931
1 changed files with 7 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue