diff options
| author | 2014-03-14 12:56:20 +0100 | |
|---|---|---|
| committer | 2014-03-14 12:56:20 +0100 | |
| commit | 146d85b5dea9ecb803a9a47c68b5489905634125 (patch) | |
| tree | c8156a5db6cb0afaf5310a59d8c1a7c4ab6de838 /src/modules.cpp | |
| parent | m_permchannels Remove pointless cleanup ceremony in cull() (diff) | |
| download | inspircd++-146d85b5dea9ecb803a9a47c68b5489905634125.tar.gz inspircd++-146d85b5dea9ecb803a9a47c68b5489905634125.tar.bz2 inspircd++-146d85b5dea9ecb803a9a47c68b5489905634125.zip | |
Add InspIRCd::GetChans(), remove ChannelCount()
Diffstat (limited to 'src/modules.cpp')
| -rw-r--r-- | src/modules.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/modules.cpp b/src/modules.cpp index 3723b09c3..62c3aa213 100644 --- a/src/modules.cpp +++ b/src/modules.cpp @@ -390,7 +390,8 @@ void ModuleManager::DoSafeUnload(Module* mod) std::vector<reference<ExtensionItem> > items; ServerInstance->Extensions.BeginUnregister(modfind->second, items); /* Give the module a chance to tidy out all its metadata */ - for (chan_hash::iterator c = ServerInstance->chanlist->begin(); c != ServerInstance->chanlist->end(); ) + const chan_hash& chans = ServerInstance->GetChans(); + for (chan_hash::const_iterator c = chans.begin(); c != chans.end(); ) { Channel* chan = c->second; ++c; |
