Ejemplo n.º 1
0
	EventReturn OnLoadDatabase() override
	{
		if (!redis)
			return EVENT_STOP;

		for (Serialize::TypeBase *type : Serialize::TypeBase::GetTypes())
			this->OnSerializeTypeCreate(type);

		while (redis->BlockAndProcess());

		redis->Subscribe(&this->sl, "anope");

		return EVENT_STOP;
	}
Ejemplo n.º 2
0
	EventReturn OnLoadDatabase() override
	{
		if (!redis)
			return EVENT_STOP;

		const std::map<Anope::string, Serialize::TypeBase *> &types = Serialize::TypeBase::GetTypes();
		for (const std::pair<Anope::string, Serialize::TypeBase *> &p : types)
			this->OnSerializeTypeCreate(p.second);

		while (redis->BlockAndProcess());

		redis->Subscribe(&this->sl, "anope");

		return EVENT_STOP;
	}