From e2a820cce21342478653a34cf8ce2b593128d035 Mon Sep 17 00:00:00 2001 From: Peter Powell Date: Mon, 13 Aug 2018 16:52:37 +0100 Subject: Add an accessor for the last mode change list to ModeParser. GetLastParse will be going away soon. --- src/modules/m_timedbans.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/modules') 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; -- cgit v1.2.3