diff options
| author | 2010-04-13 16:04:18 -0500 | |
|---|---|---|
| committer | 2010-08-03 17:32:42 -0400 | |
| commit | 8cc0bf1b8b4c3e49a8ef08e1fb0833d77d45346b (patch) | |
| tree | 7e409d61cc8a5be30a1be0f8969cde91d6bf4bc4 /src/modules/m_chanlog.cpp | |
| parent | Change UserChanList to an intrusive-style linked list (diff) | |
Drop ConfigReader::Enumerate
Diffstat (limited to 'src/modules/m_chanlog.cpp')
| -rw-r--r-- | src/modules/m_chanlog.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/modules/m_chanlog.cpp b/src/modules/m_chanlog.cpp index 74a58df7f..bcf021772 100644 --- a/src/modules/m_chanlog.cpp +++ b/src/modules/m_chanlog.cpp @@ -44,10 +44,11 @@ class ModuleChanLog : public Module logstreams.clear(); - for (int i = 0; i < MyConf.Enumerate("chanlog"); i++) + ConfigTagList tags = ServerInstance->Config->ConfTags("chanlog"); + for (ConfigIter i = tags.first; i != tags.second; ++i) { - channel = MyConf.ReadValue("chanlog", "channel", i); - snomasks = MyConf.ReadValue("chanlog", "snomasks", i); + channel = i->second->getString("channel"); + snomasks = i->second->getString("snomasks"); if (channel.empty() || snomasks.empty()) { |
