summaryrefslogtreecommitdiff
path: root/src/mode.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mode.cpp')
-rw-r--r--src/mode.cpp17
1 files changed, 1 insertions, 16 deletions
diff --git a/src/mode.cpp b/src/mode.cpp
index c37407223..1ac2b9e64 100644
--- a/src/mode.cpp
+++ b/src/mode.cpp
@@ -57,6 +57,7 @@ ModeHandler::ModeHandler(Module* Creator, const std::string& Name, char modelett
ModeHandler::~ModeHandler()
{
+ ServerInstance->Modes->DelMode(this);
}
bool ModeHandler::IsListMode()
@@ -690,22 +691,6 @@ bool ModeParser::DelMode(ModeHandler* mh)
return true;
}
-void ModeParser::RemoveModes(Module* mod)
-{
- for(int i=0; i < 256; i++)
- {
- ModeHandler* mh = modehandlers[i];
- if (mh && mh->creator == mod)
- DelMode(mh);
- for(unsigned int j=0; j < modewatchers[i].size(); j++)
- {
- ModeWatcher* mw = modewatchers[i][j];
- if (mw && mw->creator == mod)
- DelModeWatcher(mw);
- }
- }
-}
-
ModeHandler* ModeParser::FindMode(unsigned const char modeletter, ModeType mt)
{
unsigned char mask = 0;