예제 #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;
	}
예제 #2
0
파일: redis.cpp 프로젝트: SaberUK/anope
	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;
	}