diff options
Diffstat (limited to 'src/commands/cmd_quit.cpp')
-rw-r--r-- | src/commands/cmd_quit.cpp | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/src/commands/cmd_quit.cpp b/src/commands/cmd_quit.cpp index 61a88e2b5..144f4675b 100644 --- a/src/commands/cmd_quit.cpp +++ b/src/commands/cmd_quit.cpp @@ -56,21 +56,14 @@ CmdResult CommandQuit::Handle (const std::vector<std::string>& parameters, User quitmsg = ServerInstance->Config->FixedQuit; else quitmsg = parameters.size() ? - ServerInstance->Config->PrefixQuit + std::string(parameters[0]) + ServerInstance->Config->SuffixQuit + ServerInstance->Config->PrefixQuit + parameters[0] + ServerInstance->Config->SuffixQuit : "Client exited"; } else quitmsg = parameters.size() ? parameters[0] : "Client exited"; std::string* operquit = ServerInstance->OperQuit.get(user); - if (operquit) - { - ServerInstance->Users->QuitUser(user, quitmsg, operquit->c_str()); - } - else - { - ServerInstance->Users->QuitUser(user, quitmsg); - } + ServerInstance->Users->QuitUser(user, quitmsg, operquit); return CMD_SUCCESS; } |