summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/coremods/core_user/cmd_quit.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/coremods/core_user/cmd_quit.cpp b/src/coremods/core_user/cmd_quit.cpp
index 019fde0cf..c4e127dd8 100644
--- a/src/coremods/core_user/cmd_quit.cpp
+++ b/src/coremods/core_user/cmd_quit.cpp
@@ -35,6 +35,8 @@ CmdResult CommandQuit::Handle (const std::vector<std::string>& parameters, User
quitmsg = "Client exited";
else if (IS_LOCAL(user))
msgwrap.Wrap(parameters[0], quitmsg);
+ else
+ quitmsg = parameters[0];
std::string* operquit = ServerInstance->OperQuit.get(user);
ServerInstance->Users->QuitUser(user, quitmsg, operquit);