From afc8ce5cd54cb33273f3c9bf1148bb95e94be451 Mon Sep 17 00:00:00 2001
From: Randy Sommerfeld <cyan@synchro.net>
Date: Tue, 24 Oct 2023 09:18:56 +0700
Subject: [PATCH] Force the topic TS into an integer also

---
 exec/load/ircd/server.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/exec/load/ircd/server.js b/exec/load/ircd/server.js
index 22974e8d32..34ff4ea8f3 100644
--- a/exec/load/ircd/server.js
+++ b/exec/load/ircd/server.js
@@ -1184,7 +1184,7 @@ function Server_Work(cmdline) {
 			break;
 		if (p[3] == tmp.topic)
 			break;
-		tmp.topictime = this.hub ? p[2] : Epoch();
+		tmp.topictime = this.hub ? parseInt(p[2]) : Epoch();
 		tmp.topic = p[3];
 		tmp.topicchangedby = p[1];
 		origin.bcast_to_channel(tmp, format(
-- 
GitLab