From 3b9e22381bac094b20daa2715fefa90978f2d465 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Sat, 13 Jul 2024 15:29:29 +0100 Subject: Use auto when extracting the internal type of a message target. --- src/modules/m_account.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/modules/m_account.cpp') diff --git a/src/modules/m_account.cpp b/src/modules/m_account.cpp index d369f09d8..2d7e487a6 100644 --- a/src/modules/m_account.cpp +++ b/src/modules/m_account.cpp @@ -232,7 +232,7 @@ public: { case MessageTarget::TYPE_CHANNEL: { - Channel* targetchan = target.Get(); + auto* targetchan = target.Get(); if (!targetchan->IsModeSet(regmoderatedmode) || account) return MOD_RES_PASSTHRU; @@ -246,7 +246,7 @@ public: } case MessageTarget::TYPE_USER: { - User* targetuser = target.Get(); + auto* targetuser = target.Get(); if (!targetuser->IsModeSet(regdeafmode) || account) return MOD_RES_PASSTHRU; -- cgit v1.3.1-10-gc9f91