diff options
author | peavey <peavey@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-02-20 01:03:00 +0000 |
---|---|---|
committer | peavey <peavey@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-02-20 01:03:00 +0000 |
commit | 4557dce9eab8b3d6e8f9f967f76fddad4a68a8d1 (patch) | |
tree | 869af10e9bbe5d278902fff638ccf06b8f623a42 | |
parent | c1f88cfa9c653c0df9574edb6995a7385543be83 (diff) |
Put back quit prefix that got lost in last fix.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6603 e03df62e-2008-0410-955e-edbf42e46eb7
-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; } |