From 5095617d6c53081521efb673823946cbfc183753 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Sun, 29 Mar 2026 13:34:14 +0100 Subject: Avoid the direct use of intptr_t wherever possible. This may cause problems on systems like CheriBSD where the pointer type stores extra data. --- modules/delayjoin.cpp | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'modules/delayjoin.cpp') diff --git a/modules/delayjoin.cpp b/modules/delayjoin.cpp index 686f06e7d..090849d23 100644 --- a/modules/delayjoin.cpp +++ b/modules/delayjoin.cpp @@ -31,15 +31,17 @@ #include "modules/names.h" #include "modules/who.h" +using TimeExtItem = NumExtItem; + class DelayJoinMode final : public SimpleChannelMode { private: - IntExtItem& unjoined; + TimeExtItem& unjoined; IRCv3::ServerTime::API servertime; public: - DelayJoinMode(const WeakModulePtr& Parent, IntExtItem& ext) + DelayJoinMode(const WeakModulePtr& Parent, TimeExtItem& ext) : SimpleChannelMode(Parent, "delayjoin", 'D') , unjoined(ext) , servertime(Parent) @@ -77,10 +79,10 @@ class JoinHook final : public ClientProtocol::EventHook { private: - const IntExtItem& unjoined; + const TimeExtItem& unjoined; public: - JoinHook(const WeakModulePtr& mod, const IntExtItem& unjoinedref) + JoinHook(const WeakModulePtr& mod, const TimeExtItem& unjoinedref) : ClientProtocol::EventHook(mod, "JOIN", 10) , unjoined(unjoinedref) { @@ -107,7 +109,7 @@ class ModuleDelayJoin final , public Who::VisibleEventListener { private: - IntExtItem unjoined; + TimeExtItem unjoined; JoinHook joinhook; DelayJoinMode djm; -- cgit v1.3.1-10-gc9f91