From a46b8b8edea0caf94350895acd02f0c90a1027de Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Sat, 29 Oct 2022 13:01:42 +0100 Subject: Allow UserManager::Find{Nick,UUID,} to ignore unregistered users. --- src/modules/m_shun.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/modules/m_shun.cpp') diff --git a/src/modules/m_shun.cpp b/src/modules/m_shun.cpp index 96f9260ae..8837eef95 100644 --- a/src/modules/m_shun.cpp +++ b/src/modules/m_shun.cpp @@ -71,8 +71,8 @@ public: std::string target = parameters[0]; - auto find = ServerInstance->Users.Find(target); - if ((find) && (find->registered == REG_ALL)) + auto find = ServerInstance->Users.Find(target, true); + if (find) target = "*!" + find->GetBanIdent() + "@" + find->GetIPString(); if (parameters.size() == 1) -- cgit v1.3.1-10-gc9f91