X-Git-Url: https://jfr.im/git/irc/quakenet/newserv.git/blobdiff_plain/92d41a48646368424048f242af44148ad1d901f4..8c684fca9c7dbb4a2601628c744be9236ee68641:/chanserv/usercmds/accounthistory.c diff --git a/chanserv/usercmds/accounthistory.c b/chanserv/usercmds/accounthistory.c index e97633d7..33ba70f0 100644 --- a/chanserv/usercmds/accounthistory.c +++ b/chanserv/usercmds/accounthistory.c @@ -26,8 +26,7 @@ void csdb_doaccounthistory_real(DBConn *dbconn, void *arg) { time_t changetime, authtime; DBResult *pgres; int count=0; - struct tm *tmp; - char tbuf[15]; + char tbuf[TIMELEN]; if(!dbconn) return; @@ -56,7 +55,8 @@ void csdb_doaccounthistory_real(DBConn *dbconn, void *arg) { return; } - chanservsendmessage(np, "Number: Time: Old password: New password: Old email: New email:"); + /* @TIMELEN */ + chanservsendmessage(np, "Number: Time: Old password: New password: Old email: New email:"); while(dbfetchrow(pgres)) { userID=strtoul(dbgetvalue(pgres, 0), NULL, 10); changetime=strtoul(dbgetvalue(pgres, 1), NULL, 10); @@ -65,9 +65,8 @@ void csdb_doaccounthistory_real(DBConn *dbconn, void *arg) { newpass=dbgetvalue(pgres, 4); oldemail=dbgetvalue(pgres, 5); newemail=dbgetvalue(pgres, 6); - tmp=gmtime(&changetime); - strftime(tbuf, sizeof(tbuf), Q9_FORMAT_TIME, tmp); - chanservsendmessage(np, "#%-6d %-15s %-14s %-14s %-30s %s", ++count, tbuf, oldpass, newpass, oldemail, newemail); + q9strftime(tbuf, sizeof(tbuf), changetime); + chanservsendmessage(np, "#%-6d %-19s %-14s %-14s %-30s %s", ++count, tbuf, oldpass, newpass, oldemail, newemail); /* @TIMELEN */ } chanservstdmessage(np, QM_ENDOFLIST);