aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/m_alltime.cpp
diff options
context:
space:
mode:
authorGravatar Robin Burchell2012-05-27 06:10:41 -0700
committerGravatar Robin Burchell2012-05-27 06:10:41 -0700
commit9383bf66fa02e37a4cea904fe9be4fe4f5eb7fa0 (patch)
treea510b6a8ada2a2fa975ee32ee1ebb38aa8319856 /src/modules/m_alltime.cpp
parentMerge pull request #129 from attilamolnar/insp12+modestringfix (diff)
parentm_opermodes Get rid of the duplicated s2s message caused by SendGlobalMode (diff)
Merge pull request #130 from attilamolnar/insp12+modfixes
Minor improvements and fixes to several modules
Diffstat (limited to 'src/modules/m_alltime.cpp')
-rw-r--r--src/modules/m_alltime.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/m_alltime.cpp b/src/modules/m_alltime.cpp
index fe2818d62..a93ec77cf 100644
--- a/src/modules/m_alltime.cpp
+++ b/src/modules/m_alltime.cpp
@@ -39,15 +39,15 @@ 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) + " NOTICE " + user->nick + " :System time is " + fmtdate + "(" + ConvToStr(ServerInstance->Time()) + ") on " + ServerInstance->Config->ServerName;
+ std::string msg = "System time is " + std::string(fmtdate) + " (" + ConvToStr(ServerInstance->Time()) + ") on " + ServerInstance->Config->ServerName;
if (IS_LOCAL(user))
{
- user->Write(msg);
+ user->WriteServ("NOTICE %s :%s", user->nick.c_str(), msg.c_str());
}
else
{
- ServerInstance->PI->PushToClient(user, ":" + msg);
+ ServerInstance->PI->SendUserNotice(user, msg);
}
/* we want this routed out! */