예제 #1
0
	void LoadOperMOTD()
	{
		ConfigReader* conf = new ConfigReader(ServerInstance);
		std::string filename;
		filename = conf->ReadValue("opermotd","file",0);
		if (opermotd)
		{
			delete opermotd;
			opermotd = NULL;
		}
		opermotd = new FileReader(ServerInstance, filename);
		onoper = conf->ReadFlag("opermotd","onoper","yes",0);
		delete conf;
	}
예제 #2
0
	virtual void OnRehash(User* user)
	{
		ConfigReader conf;
		operoverride = conf.ReadFlag("privdeaf", "operoverride", "1", 0);
		ulineoverride = conf.ReadFlag("privdeaf", "ulineoverride", "1", 0);
	}