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_dccallow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/modules/m_dccallow.cpp') diff --git a/src/modules/m_dccallow.cpp b/src/modules/m_dccallow.cpp index af8155e37..e0f80ca2a 100644 --- a/src/modules/m_dccallow.cpp +++ b/src/modules/m_dccallow.cpp @@ -425,7 +425,7 @@ public: if (target.type == MessageTarget::TYPE_USER) { - User* u = target.Get(); + auto* u = target.Get(); /* Always allow a user to dcc themselves (although... why?) */ if (user == u) -- cgit v1.3.1-10-gc9f91