From af8effe4f0876d6fa934806745712f679bd36278 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Tue, 24 Jan 2023 23:41:50 +0000 Subject: Replace getInt/getUInt/getFloat with type safe templated functions. --- src/modules/m_permchannels.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/modules/m_permchannels.cpp') diff --git a/src/modules/m_permchannels.cpp b/src/modules/m_permchannels.cpp index 24fc5bd8b..904ecf22d 100644 --- a/src/modules/m_permchannels.cpp +++ b/src/modules/m_permchannels.cpp @@ -218,10 +218,10 @@ public: auto* c = ServerInstance->Channels.Find(channel); if (!c) { - time_t TS = tag->getInt("ts", ServerInstance->Time(), 1); + time_t TS = tag->getNum("ts", ServerInstance->Time(), 1); c = new Channel(channel, TS); - time_t topicset = tag->getInt("topicts", 0); + time_t topicset = tag->getNum("topicts", 0); std::string topic = tag->getString("topic"); if ((topicset != 0) || (!topic.empty())) -- cgit v1.3.1-10-gc9f91