aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/m_timedbans.cpp
diff options
context:
space:
mode:
authorGravatar Peter Powell2018-08-13 16:52:37 +0100
committerGravatar Peter Powell2018-08-13 16:52:37 +0100
commite2a820cce21342478653a34cf8ce2b593128d035 (patch)
tree9835be591bbca4e9c367500af73a697737d483cf /src/modules/m_timedbans.cpp
parentConvert AWAY to use cross-module events and clean up slightly. (diff)
downloadinspircd++-e2a820cce21342478653a34cf8ce2b593128d035.tar.gz
inspircd++-e2a820cce21342478653a34cf8ce2b593128d035.tar.bz2
inspircd++-e2a820cce21342478653a34cf8ce2b593128d035.zip
Add an accessor for the last mode change list to ModeParser.
GetLastParse will be going away soon.
Diffstat (limited to 'src/modules/m_timedbans.cpp')
-rw-r--r--src/modules/m_timedbans.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_timedbans.cpp b/src/modules/m_timedbans.cpp
index fd2d3d0f0..ffb84a44f 100644
--- a/src/modules/m_timedbans.cpp
+++ b/src/modules/m_timedbans.cpp
@@ -107,7 +107,7 @@ class CommandTban : public Command
// Pass the user (instead of ServerInstance->FakeClient) to ModeHandler::Process() to
// make it so that the user sets the mode themselves
ServerInstance->Modes->Process(user, channel, NULL, setban);
- if (ServerInstance->Modes->GetLastParse().empty())
+ if (ServerInstance->Modes->GetLastChangeList().empty())
{
user->WriteNotice("Invalid ban mask");
return CMD_FAILURE;