diff options
Diffstat (limited to 'src/mode.cpp')
-rw-r--r-- | src/mode.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mode.cpp b/src/mode.cpp index 0a490f92e..7575e2b0e 100644 --- a/src/mode.cpp +++ b/src/mode.cpp @@ -676,6 +676,10 @@ bool ModeParser::AddMode(ModeHandler* mh, unsigned const char modeletter) ModeParser::ModeParser() { + /* Clear mode list */ + memset(modehandlers, 0, sizeof(modehandlers)); + memset(modewatchers, 0, sizeof(modewatchers)); + /* Initialise the RFC mode letters */ this->AddMode(new ModeChannelSecret, 's'); this->AddMode(new ModeChannelPrivate, 'p'); |