summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/cmd_notice.cpp2
-rw-r--r--src/cmd_privmsg.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/cmd_notice.cpp b/src/cmd_notice.cpp
index 6c0336fa5..d947c70be 100644
--- a/src/cmd_notice.cpp
+++ b/src/cmd_notice.cpp
@@ -85,7 +85,7 @@ CmdResult cmd_notice::Handle (const char** parameters, int pcnt, userrec *user)
if (MOD_RESULT) {
return CMD_FAILURE;
}
- parameters[1] = (char*)temp.c_str();
+ parameters[1] = temp.c_str();
if (temp == "")
{
diff --git a/src/cmd_privmsg.cpp b/src/cmd_privmsg.cpp
index 18c6900f4..aba8ae12d 100644
--- a/src/cmd_privmsg.cpp
+++ b/src/cmd_privmsg.cpp
@@ -86,7 +86,7 @@ CmdResult cmd_privmsg::Handle (const char** parameters, int pcnt, userrec *user)
if (MOD_RESULT) {
return CMD_FAILURE;
}
- parameters[1] = (char*)temp.c_str();
+ parameters[1] = temp.c_str();
if (temp == "")
{