From 1ba238143792838f6f2e055fb0e81cb06b1f7956 Mon Sep 17 00:00:00 2001 From: slawkens Date: Fri, 7 Feb 2020 01:06:19 +0100 Subject: [PATCH] Remove useless config variable --- config.php | 3 +-- system/libs/validator.php | 8 -------- 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/config.php b/config.php index bf4dc36f..d72f4483 100644 --- a/config.php +++ b/config.php @@ -272,6 +272,5 @@ $config = array( 'date_timezone' => 'Europe/Berlin', // more info at http://php.net/manual/en/timezones.php 'footer_show_load_time' => true, // display load time of the page in the footer - 'monsters' => array(), 'npc' => array() -); \ No newline at end of file +); diff --git a/system/libs/validator.php b/system/libs/validator.php index b2871edd..1daa7a8b 100644 --- a/system/libs/validator.php +++ b/system/libs/validator.php @@ -280,14 +280,6 @@ class Validator } } - if(isset($config['monsters'])) - { - if(in_array($name_lower, $config['monsters'])) { - self::$lastError = 'Your name cannot contains monster name.'; - return false; - } - } - $player = new OTS_Player(); $player->find($name); if($player->isLoaded()) {