diff options
| author | 2010-02-09 15:00:24 -0600 | |
|---|---|---|
| committer | 2010-08-03 17:32:35 -0400 | |
| commit | da8db6c34090edd0a78513fd16eb017500347174 (patch) | |
| tree | ffdb9694fe46c66795024cefc44aecfd4ff8b937 /src/modules.cpp | |
| parent | Add support for parsing named mode changes from +Z to core (diff) | |
Fixes from characterless mode test
Diffstat (limited to 'src/modules.cpp')
| -rw-r--r-- | src/modules.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/modules.cpp b/src/modules.cpp index e5df59d44..b96cf0856 100644 --- a/src/modules.cpp +++ b/src/modules.cpp @@ -371,13 +371,9 @@ void ModuleManager::DoSafeUnload(Module* mod) mod->OnCleanup(TYPE_USER,u->second); u->second->doUnhookExtensions(items); } - for(char m='A'; m <= 'z'; m++) + for(ModeIDIter id; id; id++) { - ModeHandler* mh; - mh = ServerInstance->Modes->FindMode(m, MODETYPE_USER); - if (mh && mh->creator == mod) - ServerInstance->Modes->DelMode(mh); - mh = ServerInstance->Modes->FindMode(m, MODETYPE_CHANNEL); + ModeHandler* mh = ServerInstance->Modes->FindMode(id); if (mh && mh->creator == mod) ServerInstance->Modes->DelMode(mh); } |
