summaryrefslogtreecommitdiff
path: root/src/coremods
diff options
context:
space:
mode:
authorPeter Powell <petpow@saberuk.com>2018-08-13 16:52:37 +0100
committerPeter Powell <petpow@saberuk.com>2018-08-13 16:52:37 +0100
commite2a820cce21342478653a34cf8ce2b593128d035 (patch)
tree9835be591bbca4e9c367500af73a697737d483cf /src/coremods
parentba23c2b115ad3bf2632179d283165c1579332fd8 (diff)
Add an accessor for the last mode change list to ModeParser.
GetLastParse will be going away soon.
Diffstat (limited to 'src/coremods')
-rw-r--r--src/coremods/core_user/cmd_mode.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/coremods/core_user/cmd_mode.cpp b/src/coremods/core_user/cmd_mode.cpp
index a3ebda16d..101f748f1 100644
--- a/src/coremods/core_user/cmd_mode.cpp
+++ b/src/coremods/core_user/cmd_mode.cpp
@@ -92,7 +92,7 @@ CmdResult CommandMode::Handle(User* user, const Params& parameters)
else
ServerInstance->Modes->Process(user, targetchannel, targetuser, changelist, flags);
- if ((ServerInstance->Modes.GetLastParse().empty()) && (targetchannel) && (parameters.size() == 2))
+ if ((ServerInstance->Modes.GetLastChangeList().empty()) && (targetchannel) && (parameters.size() == 2))
{
/* Special case for displaying the list for listmodes,
* e.g. MODE #chan b, or MODE #chan +b without a parameter