public function quitCommand($command, $params, IrcDataObject $data) { $auth = $this->parent->getModule('Auth'); if (!$auth->nicknameIsTrusted($data->getMessage()['nick'])) { return; } $message = empty($params) ? 'WildPHP shutting down...' : $params; $this->parent->write($this->parent->getGenerator()->ircQuit($message)); }