1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-07-05 23:13:12 +02:00

Fix another numeric error in MOTD and use ISO date format (Y-m-d).

This commit is contained in:
Bram Matthys
2019-11-11 12:21:17 +01:00
parent a34bb40da4
commit 864b15c0d6
+3 -2
View File
@@ -92,9 +92,10 @@ CMD_FUNC(cmd_motd)
/* tm_year should be zero only if the struct is zero-ed */
if (themotd && themotd->lines && themotd->last_modified.tm_year)
{
sendnumericfmt(client, RPL_MOTD, "- %d/%d/%d %d:%02d", themotd->last_modified.tm_mday,
themotd->last_modified.tm_mon + 1,
sendnumericfmt(client, RPL_MOTD, ":- %.04d-%.02d-%.02d %.02d:%02d",
themotd->last_modified.tm_year + 1900,
themotd->last_modified.tm_mon + 1,
themotd->last_modified.tm_mday,
themotd->last_modified.tm_hour,
themotd->last_modified.tm_min);
}