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_dccallow.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/modules/m_dccallow.cpp') diff --git a/src/modules/m_dccallow.cpp b/src/modules/m_dccallow.cpp index 49c81b242..2f4edcad2 100644 --- a/src/modules/m_dccallow.cpp +++ b/src/modules/m_dccallow.cpp @@ -234,11 +234,9 @@ public: } std::string nick(parameters[0], 1); - auto target = ServerInstance->Users.FindNick(nick); - - if ((target) && (!target->quitting) && (target->registered == REG_ALL)) + auto target = ServerInstance->Users.FindNick(nick, true); + if (target && !target->quitting) { - if (action == '-') { // check if it contains any entries -- cgit v1.3.1-10-gc9f91