]> jfr.im git - irc/rqf/shadowircd.git/blobdiff - modules/m_time.c
ShadowIRCd 6.2.0-beta1
[irc/rqf/shadowircd.git] / modules / m_time.c
index 69403699d83f8ff77435fa28d00098a3eae6d35f..944b84635b1ad04d7c23f5667478c608bded8c24 100644 (file)
@@ -21,7 +21,6 @@
  *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307
  *  USA
  *
- *  $Id: m_time.c 254 2005-09-21 23:35:12Z nenolod $
  */
 
 #include "stdinc.h"
@@ -35,7 +34,6 @@
 #include "parse.h"
 #include "modules.h"
 #include "packet.h"
-#include "sprintf_irc.h"
 
 static int m_time(struct Client *, struct Client *, int, const char **);
 static char *date(void);
@@ -61,7 +59,6 @@ static const char *weekdays[] = {
 
 /*
  * m_time
- *      parv[0] = sender prefix
  *      parv[1] = servername
  */
 static int
@@ -93,7 +90,7 @@ date(void)
        time_t lclock;
        int minswest;
 
-       lclock = CurrentTime;
+       lclock = rb_current_time();
        gm = gmtime(&lclock);
        memcpy((void *) &gmbuf, (void *) gm, sizeof(gmbuf));
        gm = &gmbuf;