summaryrefslogtreecommitdiff
path: root/src/modules/m_alltime.cpp
diff options
context:
space:
mode:
authorattilamolnar <attilamolnar@hush.com>2012-11-18 23:53:50 +0100
committerattilamolnar <attilamolnar@hush.com>2012-11-19 18:32:42 +0100
commit6c67546af64cec887bb716f666016eb93fde5d2b (patch)
treef5fd16a2d04a0450769c489fb7ccbf91cb7db803 /src/modules/m_alltime.cpp
parent7eab4fd473143be2516037b114d48b89cc481fc4 (diff)
ServerConfig::ServerName is a std::string, don't call .c_str() on it when passing it to Channel::WriteChannelWithServ, etc.
Diffstat (limited to 'src/modules/m_alltime.cpp')
-rw-r--r--src/modules/m_alltime.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_alltime.cpp b/src/modules/m_alltime.cpp
index 29a0ee42c..76536ed3f 100644
--- a/src/modules/m_alltime.cpp
+++ b/src/modules/m_alltime.cpp
@@ -38,7 +38,7 @@ class CommandAlltime : public Command
time_t now = ServerInstance->Time();
strftime(fmtdate, sizeof(fmtdate), "%Y-%m-%d %H:%M:%S", gmtime(&now));
- std::string msg = ":" + std::string(ServerInstance->Config->ServerName.c_str()) + " NOTICE " + user->nick + " :System time is " + fmtdate + " (" + ConvToStr(ServerInstance->Time()) + ") on " + ServerInstance->Config->ServerName;
+ std::string msg = ":" + ServerInstance->Config->ServerName + " NOTICE " + user->nick + " :System time is " + fmtdate + " (" + ConvToStr(ServerInstance->Time()) + ") on " + ServerInstance->Config->ServerName;
user->SendText(msg);