diff options
| author | 2013-08-04 19:13:52 +0200 | |
|---|---|---|
| committer | 2013-08-04 19:13:52 +0200 | |
| commit | 30935599479bd102db16842a8bc614d905a2ec60 (patch) | |
| tree | 87ea9f49f2129d206448e9b4a8c59539340cbe3b /src/modules/m_timedbans.cpp | |
| parent | FakeUsers are only inserted into UserManager::uuidlist; don't try to erase() ... (diff) | |
| download | inspircd++-30935599479bd102db16842a8bc614d905a2ec60.tar.gz inspircd++-30935599479bd102db16842a8bc614d905a2ec60.tar.bz2 inspircd++-30935599479bd102db16842a8bc614d905a2ec60.zip | |
Call ModeParser::Process() directly instead of going through the CommandParser
Simplify the way how m_conn_umodes assembles the modes it sets
Diffstat (limited to 'src/modules/m_timedbans.cpp')
| -rw-r--r-- | src/modules/m_timedbans.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/m_timedbans.cpp b/src/modules/m_timedbans.cpp index afb042da0..29691b338 100644 --- a/src/modules/m_timedbans.cpp +++ b/src/modules/m_timedbans.cpp @@ -79,9 +79,9 @@ class CommandTban : public Command mask.append("!*@*"); setban.push_back(mask); - // use CallHandler to make it so that the user sets the mode - // themselves - ServerInstance->Parser->CallHandler("MODE",setban,user); + // Pass the user (instead of ServerInstance->FakeClient) to ModeHandler::Process() to + // make it so that the user sets the mode themselves + ServerInstance->Modes->Process(setban, user); if (ServerInstance->Modes->GetLastParse().empty()) { user->WriteNotice("Invalid ban mask"); |
