From 0377d937c5d1bf20fa0c29d4a41c7fd89502ab38 Mon Sep 17 00:00:00 2001 From: danieldg Date: Wed, 2 Sep 2009 00:53:03 +0000 Subject: Remote user messaging fixes Add format string output to DumpText Fix PI->PushToClient prefixing issue Fix ENCAP routing to use SID rather than server name git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11658 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_alltime.cpp | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'src/modules/m_alltime.cpp') diff --git a/src/modules/m_alltime.cpp b/src/modules/m_alltime.cpp index 7121ac4c7..5f7c83f3c 100644 --- a/src/modules/m_alltime.cpp +++ b/src/modules/m_alltime.cpp @@ -32,14 +32,7 @@ class CommandAlltime : public Command std::string msg = ":" + std::string(ServerInstance->Config->ServerName) + " NOTICE " + user->nick + " :System time is " + fmtdate + "(" + ConvToStr(ServerInstance->Time()) + ") on " + ServerInstance->Config->ServerName; - if (IS_LOCAL(user)) - { - user->Write(msg); - } - else - { - ServerInstance->PI->PushToClient(user, ":" + msg); - } + ServerInstance->DumpText(user, msg); /* we want this routed out! */ return CMD_SUCCESS; -- cgit v1.3.1-10-gc9f91