From 1662f21eedf91c49ac97333f72f494c36895803e Mon Sep 17 00:00:00 2001 From: danieldg Date: Wed, 2 Sep 2009 00:50:21 +0000 Subject: Remove now-unused quitmsg/operquitmsg fields from User git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11637 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/commands/cmd_quit.cpp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'src/commands/cmd_quit.cpp') diff --git a/src/commands/cmd_quit.cpp b/src/commands/cmd_quit.cpp index 9c0392162..e29382e84 100644 --- a/src/commands/cmd_quit.cpp +++ b/src/commands/cmd_quit.cpp @@ -38,7 +38,16 @@ CmdResult CommandQuit::Handle (const std::vector& parameters, User else quitmsg = parameters.size() ? parameters[0] : "Client exited"; - ServerInstance->Users->QuitUser(user, quitmsg); + std::string* operquit; + if (user->GetExt("operquit", operquit)) + { + ServerInstance->Users->QuitUser(user, quitmsg, operquit->c_str()); + delete operquit; + } + else + { + ServerInstance->Users->QuitUser(user, quitmsg); + } return CMD_SUCCESS; } -- cgit v1.2.3