X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fcommands%2Fcmd_qline.cpp;h=3118798e6cfc2ea52b086f602a52eee419c2c597;hb=7ddef68f44ecb01f891e55a680078f7857fb866f;hp=64ba1a78b3281d47f24371b2b351becd0ea5d8f0;hpb=553a8da754c8cd308bad2008018849714e70f9b7;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/commands/cmd_qline.cpp b/src/commands/cmd_qline.cpp index 64ba1a78b..3118798e6 100644 --- a/src/commands/cmd_qline.cpp +++ b/src/commands/cmd_qline.cpp @@ -63,8 +63,9 @@ CmdResult CommandQline::Handle (const std::vector& parameters, User else { time_t c_requires_crap = duration + ServerInstance->Time(); + std::string timestr = ServerInstance->TimeString(c_requires_crap); ServerInstance->SNO->WriteToSnoMask('x',"%s added timed Q-line for %s, expires on %s: %s",user->nick.c_str(),parameters[0].c_str(), - ServerInstance->TimeString(c_requires_crap).c_str(), parameters[2].c_str()); + timestr.c_str(), parameters[2].c_str()); } ServerInstance->XLines->ApplyLines(); }