From b224f8056cbf9b41994b44e48a7ad154976d1c88 Mon Sep 17 00:00:00 2001 From: Habeas Codice Date: Fri, 21 Nov 2014 15:35:59 -0800 Subject: new system config reserved_channels prevents members from creating channels in a reserved list --- include/text.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'include/text.php') diff --git a/include/text.php b/include/text.php index 22a1a78c4..ce729ac1b 100644 --- a/include/text.php +++ b/include/text.php @@ -1815,8 +1815,13 @@ function legal_webbie($s) { function check_webbie($arr) { + $reservechan = get_config('system','reserved_channels'); + if(strlen($reservechan)) + $taken = explode(',', $reservechan); + else + $taken = array(); + $str = ''; - $taken = array(); if(count($arr)) { foreach($arr as $x) { $y = legal_webbie($x); -- cgit v1.2.3