aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Sadie Powell2025-12-26 14:32:52 +0000
committerGravatar Sadie Powell2025-12-26 14:32:52 +0000
commita6c089111846b1d54a35bddbd1bf8cc81c6e45da (patch)
tree1bb3ca6a9f2ac6fbfd5e5843a268ce9df2495085
parentRelease v4.9.0. (diff)
Include more user information in the blockamsg notice.
-rw-r--r--src/modules/m_blockamsg.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/modules/m_blockamsg.cpp b/src/modules/m_blockamsg.cpp
index bb502267d..2dfb0172e 100644
--- a/src/modules/m_blockamsg.cpp
+++ b/src/modules/m_blockamsg.cpp
@@ -125,8 +125,10 @@ public:
{
// Block it...
if (action == IBLOCK_KILLOPERS || action == IBLOCK_NOTICEOPERS)
- ServerInstance->SNO.WriteToSnoMask('a', "{} had an /amsg or /ame blocked", user->nick);
-
+ {
+ ServerInstance->SNO.WriteToSnoMask('a', "User {} ({}) had an /amsg or /ame blocked",
+ user->GetRealMask(), user->GetAddress());
+ }
if (action == IBLOCK_KILL || action == IBLOCK_KILLOPERS)
ServerInstance->Users.QuitUser(user, "Attempted to global message (/amsg or /ame)");
else if (action == IBLOCK_NOTICE || action == IBLOCK_NOTICEOPERS)