From e466a6f5fef9aa5cb0ac4621fd578edbace88281 Mon Sep 17 00:00:00 2001 From: brain Date: Sun, 1 Apr 2007 15:22:54 +0000 Subject: Add and to go along with the existing . note that fixedquit overrides both suffix and prefix if set git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6722 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/cmd_quit.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/cmd_quit.cpp') diff --git a/src/cmd_quit.cpp b/src/cmd_quit.cpp index 5c5abf7ba..5e2c023b7 100644 --- a/src/cmd_quit.cpp +++ b/src/cmd_quit.cpp @@ -30,7 +30,14 @@ CmdResult cmd_quit::Handle (const char** parameters, int pcnt, userrec *user) std::string quitmsg; if (IS_LOCAL(user)) - quitmsg = pcnt ? ServerInstance->Config->PrefixQuit + std::string(parameters[0]) : "Client exited"; + { + if (*ServerInstance->Config->FixedQuit) + quitmsg = ServerInstance->Config->FixedQuit; + else + quitmsg = pcnt ? + ServerInstance->Config->PrefixQuit + std::string(parameters[0]) + ServerInstance->Config->SuffixQuit + : "Client exited"; + } else quitmsg = pcnt ? parameters[0] : "Client exited"; -- cgit v1.2.3