Merge pull request #1221 from f0o/issue-1218

Fix type fatal on reload
This commit is contained in:
Neil Lathwood 2015-06-09 15:09:31 +01:00
commit 5c644d872f

View File

@ -375,8 +375,10 @@ class ircbot {
private function _reload() {
if( $this->user['level'] == 10 ) {
global $config;
$config = array();
include("includes/defaults.inc.php");
include("config.php");
include("includes/definitions.inc.php");
$this->respond("Reloading configuration & defaults");
if( $config != $this->config ) {
return $this->__construct();