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_restrictmsg.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/modules/m_restrictmsg.cpp') diff --git a/src/modules/m_restrictmsg.cpp b/src/modules/m_restrictmsg.cpp index 1ad71341b..42a17155c 100644 --- a/src/modules/m_restrictmsg.cpp +++ b/src/modules/m_restrictmsg.cpp @@ -35,7 +35,7 @@ private: { if ((target.type == MessageTarget::TYPE_USER) && (IS_LOCAL(user))) { - User* u = target.Get(); + const auto* u = target.Get(); // message allowed if: // (1) the sender is opered -- cgit v1.3.1-10-gc9f91