diff options
Diffstat (limited to 'src/cmd_quit.cpp')
-rw-r--r-- | src/cmd_quit.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/cmd_quit.cpp b/src/cmd_quit.cpp index bb328de5b..6654be74c 100644 --- a/src/cmd_quit.cpp +++ b/src/cmd_quit.cpp @@ -26,7 +26,16 @@ extern "C" command_t* init_command(InspIRCd* Instance) CmdResult cmd_quit::Handle (const char** parameters, int pcnt, userrec *user) { - userrec::QuitUser(ServerInstance, user, pcnt ? parameters[0] : "Client exited"); + + std::string quitmsg; + + if (IS_LOCAL(user)) + quitmsg = pcnt ? ServerInstance->Config->PrefixQuit + std::string(parameters[0]) : "Client exited"; + else + quitmsg = pcnt ? parameters[0] : "Client exited"; + + userrec::QuitUser(ServerInstance, user, quitmsg.c_str()); + return CMD_SUCCESS; } |