From 769f9c0c340635cf401bdc92cb9a4c515ffeb0f3 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Sun, 15 Jan 2023 22:28:45 +0000 Subject: Fix some issues reported by scan-build. All of these are harmless and should never cause an issue in practise. --- src/modules/m_blockamsg.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/modules/m_blockamsg.cpp') 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; -- cgit v1.3.1-10-gc9f91