]> jfr.im git - irc/quakenet/newserv.git/blobdiff - chanserv/newsearch/formats.c
HELPMOD2: don't ignore +h clients
[irc/quakenet/newserv.git] / chanserv / newsearch / formats.c
index af95d263101e2a22df770d776085ecc1250ffd17..5bdce11c4b644341835e01d2d61e42a2e12672e2 100644 (file)
@@ -92,6 +92,8 @@ void printnick_authchans(searchCtx *ctx, nick *sender, nick *np) {
 void printauth(searchCtx *ctx, nick *sender, authname *anp) {
   reguser *rup;
   char *la;
+  char timebuf[TIMELEN];
+
 /*  StringBuf b;
   char output[1024];
   nick *tnp;
@@ -120,8 +122,7 @@ void printauth(searchCtx *ctx, nick *sender, authname *anp) {
 */
 
   if (rup->lastauth) {
-    char timebuf[20];
-    strftime(timebuf, 15, "%d/%m/%y %H:%M", gmtime(&(rup->lastauth)));
+    q9strftime(timebuf, sizeof(timebuf), rup->lastauth);
     la = timebuf;
   } else {
     la = "(never)";