aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/m_restrictmsg.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2024-07-13 15:29:29 +0100
committerGravatar Sadie Powell2024-07-13 15:29:29 +0100
commit3b9e22381bac094b20daa2715fefa90978f2d465 (patch)
tree79e354813920fa2a563d5062d6a407ed1c85f9c4 /src/modules/m_restrictmsg.cpp
parentConst correct numerichelper. (diff)
downloadinspircd++-3b9e22381bac094b20daa2715fefa90978f2d465.tar.gz
inspircd++-3b9e22381bac094b20daa2715fefa90978f2d465.tar.bz2
inspircd++-3b9e22381bac094b20daa2715fefa90978f2d465.zip
Use auto when extracting the internal type of a message target.
Diffstat (limited to 'src/modules/m_restrictmsg.cpp')
-rw-r--r--src/modules/m_restrictmsg.cpp2
1 files changed, 1 insertions, 1 deletions
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<User>();
+ const auto* u = target.Get<User>();
// message allowed if:
// (1) the sender is opered