aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_blockamsg.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2023-01-15 22:28:45 +0000
committerGravatar Sadie Powell2023-01-15 22:28:45 +0000
commit769f9c0c340635cf401bdc92cb9a4c515ffeb0f3 (patch)
treee4bfe0849a5f47acdc1fce4b685209696641e48a /src/modules/m_blockamsg.cpp
parentFix cloaking users with a non-IP hostname when using hmac-sha256-ip. (diff)
Fix some issues reported by scan-build.
All of these are harmless and should never cause an issue in practise.
Diffstat (limited to 'src/modules/m_blockamsg.cpp')
-rw-r--r--src/modules/m_blockamsg.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/modules/m_blockamsg.cpp b/src/modules/m_blockamsg.cpp
index 3a69a4724..f3cbfd37a 100644
--- a/src/modules/m_blockamsg.cpp
+++ b/src/modules/m_blockamsg.cpp
@@ -143,8 +143,7 @@ public:
}
else
{
- m = new BlockedMessage(parameters[1], parameters[0], ServerInstance->Time());
- blockamsg.Set(user, m);
+ blockamsg.SetFwd(user, parameters[1], parameters[0], ServerInstance->Time());
}
}
return MOD_RES_PASSTHRU;