From f9110f02e7483530d46eb892999d09edb131ec7f Mon Sep 17 00:00:00 2001 From: brain Date: Fri, 6 Apr 2007 19:18:08 +0000 Subject: 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 --- src/cmd_eline.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/cmd_eline.cpp') diff --git a/src/cmd_eline.cpp b/src/cmd_eline.cpp index 803f08b03..ed7525e05 100644 --- a/src/cmd_eline.cpp +++ b/src/cmd_eline.cpp @@ -49,7 +49,7 @@ CmdResult cmd_eline::Handle (const char** parameters, int pcnt, userrec *user) { time_t c_requires_crap = ServerInstance->Duration(parameters[1]) + ServerInstance->Time(); ServerInstance->SNO->WriteToSnoMask('x',"%s added timed E-line for %s, expires on %s",user->nick,parameters[0], - ctime(&c_requires_crap)); + ServerInstance->TimeString(c_requires_crap).c_str()); } } } -- cgit v1.3.1-10-gc9f91