- chanservsendmessage(np, "Number: Time: Old password: New password: Old email: New email:");
- for (i=0; i<num; i++) {
- userID=strtoul(PQgetvalue(pgres, i, 0), NULL, 10);
- changetime=strtoul(PQgetvalue(pgres, i, 1), NULL, 10);
- authtime=strtoul(PQgetvalue(pgres, i, 2), NULL, 10);
- oldpass=PQgetvalue(pgres, i, 3);
- newpass=PQgetvalue(pgres, i, 4);
- oldemail=PQgetvalue(pgres, i, 5);
- newemail=PQgetvalue(pgres, i, 6);
- tmp=localtime(&changetime);
- strftime(tbuf, 15, "%d/%m/%y %H:%M", tmp);
- chanservsendmessage(np, "#%-6d %-15s %-14s %-14s %-30s %s", ++count, tbuf, oldpass, newpass, oldemail, newemail);
+ /* @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);
+ authtime=strtoul(dbgetvalue(pgres, 2), NULL, 10);
+ oldpass=dbgetvalue(pgres, 3);
+ newpass=dbgetvalue(pgres, 4);
+ oldemail=dbgetvalue(pgres, 5);
+ newemail=dbgetvalue(pgres, 6);
+ q9strftime(tbuf, sizeof(tbuf), changetime);
+ chanservsendmessage(np, "#%-6d %-19s %-14s %-14s %-30s %s", ++count, tbuf, oldpass, newpass, oldemail, newemail); /* @TIMELEN */