diff options
| author | 2023-01-24 23:41:50 +0000 | |
|---|---|---|
| committer | 2023-01-25 00:39:27 +0000 | |
| commit | af8effe4f0876d6fa934806745712f679bd36278 (patch) | |
| tree | b0d6de94d60dc5e116faa5e14b6029fb1c527886 /src/modules/m_permchannels.cpp | |
| parent | Fix using (unsigned) long instead of (s)size_t. (diff) | |
Replace getInt/getUInt/getFloat with type safe templated functions.
Diffstat (limited to 'src/modules/m_permchannels.cpp')
| -rw-r--r-- | src/modules/m_permchannels.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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<time_t>("ts", ServerInstance->Time(), 1); c = new Channel(channel, TS); - time_t topicset = tag->getInt("topicts", 0); + time_t topicset = tag->getNum<time_t>("topicts", 0); std::string topic = tag->getString("topic"); if ((topicset != 0) || (!topic.empty())) |
