aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/m_account.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2024-07-13 22:37:41 +0100
committerGravatar Sadie Powell2024-07-13 22:37:41 +0100
commit13cfe13d7bf665a2f9cf8d18d4d5ffa6da8f24c6 (patch)
treebd31c5e25bb9935f6411bd6dede365ece6708cdf /src/modules/m_account.cpp
parentMerge branch 'insp4' into master. (diff)
parentFix the getentropy test on systems with a new libc and old kernel. (diff)
Merge branch 'insp4' into master.
Diffstat (limited to 'src/modules/m_account.cpp')
-rw-r--r--src/modules/m_account.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/m_account.cpp b/src/modules/m_account.cpp
index 9860314a5..89cdcacb4 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<Channel>();
+ auto* targetchan = target.Get<Channel>();
if (!targetchan->IsModeSet(regmoderatedmode) || account)
return MOD_RES_PASSTHRU;
@@ -246,7 +246,7 @@ public:
}
case MessageTarget::TYPE_USER:
{
- User* targetuser = target.Get<User>();
+ auto* targetuser = target.Get<User>();
if (!targetuser->IsModeSet(regdeafmode) || account)
return MOD_RES_PASSTHRU;