diff options
| author | 2025-12-26 14:32:52 +0000 | |
|---|---|---|
| committer | 2025-12-26 14:32:52 +0000 | |
| commit | a6c089111846b1d54a35bddbd1bf8cc81c6e45da (patch) | |
| tree | 1bb3ca6a9f2ac6fbfd5e5843a268ce9df2495085 /src/modules/m_blockamsg.cpp | |
| parent | Release v4.9.0. (diff) | |
Include more user information in the blockamsg notice.
Diffstat (limited to 'src/modules/m_blockamsg.cpp')
| -rw-r--r-- | src/modules/m_blockamsg.cpp | 6 |
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) |
