summaryrefslogtreecommitdiff
path: root/src/cmd_qline.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-04-06 19:03:11 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-04-06 19:03:11 +0000
commit578f32db3ca4c05763d0eb6d9b5198e677b6f200 (patch)
treeff82782c2c0347d57fd3c83a333a6f514bfe64c5 /src/cmd_qline.cpp
parent296661c5c59e9ea939cb8246530ca5c15af273d9 (diff)
Show expiry times of glines, klines, qlines and elines as the time theyre due to expire rather than number of secs (thanks bricker)
Oh, and i hate C time formatting functions. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6748 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/cmd_qline.cpp')
-rw-r--r--src/cmd_qline.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/cmd_qline.cpp b/src/cmd_qline.cpp
index 951f39df8..d1f717c8f 100644
--- a/src/cmd_qline.cpp
+++ b/src/cmd_qline.cpp
@@ -49,7 +49,9 @@ CmdResult cmd_qline::Handle (const char** parameters, int pcnt, userrec *user)
}
else
{
- ServerInstance->SNO->WriteToSnoMask('x',"%s added timed Q-line for %s, expires in %d seconds.",user->nick,parameters[0],ServerInstance->Duration(parameters[1]));
+ time_t c_requires_crap = ServerInstance->Duration(parameters[1]) + ServerInstance->Time();
+ ServerInstance->SNO->WriteToSnoMask('x',"%s added timed Q-line for %s, expires on %s",user->nick,parameters[0],
+ ctime(&c_requires_crap));
}
ServerInstance->XLines->apply_lines(to_apply);
}