summaryrefslogtreecommitdiff
path: root/src/commands
diff options
context:
space:
mode:
authordanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2009-09-02 00:50:21 +0000
committerdanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2009-09-02 00:50:21 +0000
commit1662f21eedf91c49ac97333f72f494c36895803e (patch)
treefbd7c628a238dbc987fd55939bf218c622c0a499 /src/commands
parentdb7cc57f444a82df65f47b4f7058560e645e35cf (diff)
Remove now-unused quitmsg/operquitmsg fields from User
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11637 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/commands')
-rw-r--r--src/commands/cmd_quit.cpp11
1 files changed, 10 insertions, 1 deletions
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<std::string>& 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;
}