aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_callerid.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_callerid.cpp
parentConst correct numerichelper. (diff)
Use auto when extracting the internal type of a message target.
Diffstat (limited to 'src/modules/m_callerid.cpp')
-rw-r--r--src/modules/m_callerid.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_callerid.cpp b/src/modules/m_callerid.cpp
index 50512824d..a5124ba90 100644
--- a/src/modules/m_callerid.cpp
+++ b/src/modules/m_callerid.cpp
@@ -411,7 +411,7 @@ public:
if (!IS_LOCAL(user) || target.type != MessageTarget::TYPE_USER)
return MOD_RES_PASSTHRU;
- User* dest = target.Get<User>();
+ auto* dest = target.Get<User>();
if (!dest->IsModeSet(myumode) || (user == dest))
return MOD_RES_PASSTHRU;