]> jfr.im git - irc/rqf/shadowircd.git/blobdiff - modules/m_time.c
Allow /ojoin !#channel/%#channel, if admin/halfop are enabled.
[irc/rqf/shadowircd.git] / modules / m_time.c
index 26568c8bc08a60f760ee7cc18799331ab4a8d72e..81031ddc286245dc3208fb037a1b1b5a0aeaa19c 100644 (file)
@@ -35,7 +35,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 +60,6 @@ static const char *weekdays[] = {
 
 /*
  * m_time
- *      parv[0] = sender prefix
  *      parv[1] = servername
  */
 static int
@@ -93,7 +91,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;
@@ -111,7 +109,7 @@ date(void)
        if(minswest < 0)
                minswest = -minswest;
 
-       ircsprintf(buf, "%s %s %d %d -- %02u:%02u:%02u %c%02u:%02u",
+       rb_sprintf(buf, "%s %s %d %d -- %02u:%02u:%02u %c%02u:%02u",
                   weekdays[lt->tm_wday], months[lt->tm_mon], lt->tm_mday,
                   lt->tm_year + 1900, lt->tm_hour, lt->tm_min, lt->tm_sec,
                   plus, minswest / 60, minswest % 60);