/** Mode handler, handles mode setting and removal
*/
- ModeParser* Modes;
+ ModeParser Modes;
/** Command parser, handles client to server commands
*/
* parses client to server MODE strings for user and channel modes, and performs
* processing for the 004 mode list numeric, amongst other things.
*/
-class CoreExport ModeParser
+class CoreExport ModeParser : public fakederef<ModeParser>
{
public:
static const ModeHandler::Id MODEID_MAX = 64;
}
DeleteZero(this->FakeClient);
DeleteZero(this->Users);
- DeleteZero(this->Modes);
DeleteZero(this->XLines);
DeleteZero(this->Modules);
DeleteZero(this->SNO);
this->SNO = 0;
this->Modules = 0;
this->XLines = 0;
- this->Modes = 0;
this->ConfigThread = NULL;
this->FakeClient = NULL;
std::cout << "\tAttila" << con_reset << std::endl << std::endl;
std::cout << "Others:\t\t\t" << con_green << "See /INFO Output" << con_reset << std::endl;
- this->Modes = new ModeParser;
-
#ifndef _WIN32
if (!do_root)
this->CheckRoot();
CullResult ModeHandler::cull()
{
- if (ServerInstance->Modes)
+ if (ServerInstance)
ServerInstance->Modes->DelMode(this);
return classbase::cull();
}