summaryrefslogtreecommitdiff
path: root/src/coremods
diff options
context:
space:
mode:
authorPeter Powell <petpow@saberuk.com>2017-08-27 21:11:12 +0100
committerPeter Powell <petpow@saberuk.com>2017-09-11 16:03:06 +0100
commitccb6c0f243ee8de52677dface0a24878630bb7fd (patch)
treee5d496a59c8b94dcd7156b0fa9f16da5d6455fe8 /src/coremods
parent51a47e7d757df63370168ab5000d13ca9c349ecd (diff)
Move operquit out of the core and into core_user.
Diffstat (limited to 'src/coremods')
-rw-r--r--src/coremods/core_user/cmd_quit.cpp5
-rw-r--r--src/coremods/core_user/core_user.h3
2 files changed, 6 insertions, 2 deletions
diff --git a/src/coremods/core_user/cmd_quit.cpp b/src/coremods/core_user/cmd_quit.cpp
index c4e127dd8..f9a4e1f70 100644
--- a/src/coremods/core_user/cmd_quit.cpp
+++ b/src/coremods/core_user/cmd_quit.cpp
@@ -23,6 +23,7 @@
CommandQuit::CommandQuit(Module* parent)
: Command(parent, "QUIT", 0, 1)
+ , operquit("operquit", ExtensionItem::EXT_USER, parent)
{
works_before_reg = true;
syntax = "[<message>]";
@@ -38,8 +39,8 @@ CmdResult CommandQuit::Handle (const std::vector<std::string>& parameters, User
else
quitmsg = parameters[0];
- std::string* operquit = ServerInstance->OperQuit.get(user);
- ServerInstance->Users->QuitUser(user, quitmsg, operquit);
+ std::string* operquitmsg = operquit.get(user);
+ ServerInstance->Users->QuitUser(user, quitmsg, operquitmsg);
return CMD_SUCCESS;
}
diff --git a/src/coremods/core_user/core_user.h b/src/coremods/core_user/core_user.h
index 0418588c1..72ba67869 100644
--- a/src/coremods/core_user/core_user.h
+++ b/src/coremods/core_user/core_user.h
@@ -137,6 +137,9 @@ class CommandPart : public Command
*/
class CommandQuit : public Command
{
+ private:
+ StringExtItem operquit;
+
public:
MessageWrapper msgwrap;