diff options
| author | 2007-04-06 19:18:08 +0000 | |
|---|---|---|
| committer | 2007-04-06 19:18:08 +0000 | |
| commit | f9110f02e7483530d46eb892999d09edb131ec7f (patch) | |
| tree | e887d5cf65cf8c7e8667b6db15559a9b00c484b2 /src/cmd_zline.cpp | |
| parent | Show expiry times of glines, klines, qlines and elines as the time theyre due... (diff) | |
| download | inspircd++-f9110f02e7483530d46eb892999d09edb131ec7f.tar.gz inspircd++-f9110f02e7483530d46eb892999d09edb131ec7f.tar.bz2 inspircd++-f9110f02e7483530d46eb892999d09edb131ec7f.zip | |
We had to roll our own time function because some craqsmoker thought having a carriage return on the end of ctime and asctime was a great idea, and the only other solution is to fanny around with
strftime.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6749 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/cmd_zline.cpp')
| -rw-r--r-- | src/cmd_zline.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/cmd_zline.cpp b/src/cmd_zline.cpp index f2b14c5ba..70ca81664 100644 --- a/src/cmd_zline.cpp +++ b/src/cmd_zline.cpp @@ -50,7 +50,9 @@ CmdResult cmd_zline::Handle (const char** parameters, int pcnt, userrec *user) } else { - ServerInstance->SNO->WriteToSnoMask('x',"%s added timed Z-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 Z-line for %s, expires on %s",user->nick,parameters[0], + ServerInstance->TimeString(c_requires_crap).c_str()); } ServerInstance->XLines->apply_lines(to_apply); } |
