summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-02-20 06:18:19 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-02-20 06:18:19 +0000
commit22cd26d391895c0aae08dac390c5183ee93cadc8 (patch)
treebece667c47bb8ca26ff376ece0263ee791ee6612
parentcea84d2e81a33fcf9b94af79ebec8ea7f567664f (diff)
No need to .c_str() the quitmsg, it takes const std::string&
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6605 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r--src/cmd_quit.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd_quit.cpp b/src/cmd_quit.cpp
index 6654be74c..5c5abf7ba 100644
--- a/src/cmd_quit.cpp
+++ b/src/cmd_quit.cpp
@@ -34,7 +34,7 @@ CmdResult cmd_quit::Handle (const char** parameters, int pcnt, userrec *user)
else
quitmsg = pcnt ? parameters[0] : "Client exited";
- userrec::QuitUser(ServerInstance, user, quitmsg.c_str());
+ userrec::QuitUser(ServerInstance, user, quitmsg);
return CMD_SUCCESS;
}