X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Fmodules%2Fm_alltime.cpp;h=75ed4f35560cf6327d28f797dacd78c5d3a2fa9c;hb=52671661f8fdca0b61aec8009b4bc7de9bc00166;hp=602646ebdc28ce9361e1cfbbea4957e4138b0364;hpb=f1271614679843191bb247c0db2716acb5ac0e4b;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_alltime.cpp b/src/modules/m_alltime.cpp index 602646ebd..75ed4f355 100644 --- a/src/modules/m_alltime.cpp +++ b/src/modules/m_alltime.cpp @@ -18,26 +18,21 @@ class CommandAlltime : public Command { public: - CommandAlltime(InspIRCd *Instance) : Command(Instance, "ALLTIME", 'o', 0) + CommandAlltime(InspIRCd *Instance) : Command(Instance, "ALLTIME", "o", 0) { this->source = "m_alltime.so"; syntax.clear(); translation.push_back(TR_END); } - CmdResult Handle(const char **parameters, int pcnt, User *user) + CmdResult Handle(const char* const* parameters, int pcnt, User *user) { char fmtdate[64]; - char fmtdate2[64]; - time_t now = ServerInstance->Time(false); + time_t now = ServerInstance->Time(); strftime(fmtdate, sizeof(fmtdate), "%F %T", gmtime(&now)); - now = ServerInstance->Time(true); - strftime(fmtdate2, sizeof(fmtdate2), "%F %T", gmtime(&now)); - - int delta = ServerInstance->GetTimeDelta(); std::string msg = ":" + std::string(ServerInstance->Config->ServerName) + " NOTICE " + user->nick + " :System time for " + - ServerInstance->Config->ServerName + " is: " + fmtdate + " (delta " + ConvToStr(delta) + " seconds): Time with delta: "+ fmtdate2; + ServerInstance->Config->ServerName + " is: " + fmtdate; if (IS_LOCAL(user)) {