mirror of
https://github.com/anope/anope.git
synced 2026-06-12 19:14:47 +02:00
Add Block::GetBlocks which returns an iterable list of blocks.
This commit is contained in:
+1
-2
@@ -1095,9 +1095,8 @@ public:
|
||||
refresh = block.Get<int>("refresh", "3600");
|
||||
|
||||
std::vector<std::pair<Anope::string, short> > notify;
|
||||
for (int i = 0; i < block.CountBlock("notify"); ++i)
|
||||
for (const auto &[_, n] : block.GetBlocks("notify"))
|
||||
{
|
||||
const auto &n = block.GetBlock("notify", i);
|
||||
auto nip = n.Get<Anope::string>("ip");
|
||||
auto nport = n.Get<short>("port");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user