protected function isAuthenticated($data) { if (!$this->bot->isAuthenticated($data)) { $this->sendResponse($data->nick, 'Error: You need to be authenticated to run this command.'); return false; } return true; }