diff options
| author | 2022-10-29 13:01:42 +0100 | |
|---|---|---|
| committer | 2022-10-29 13:01:42 +0100 | |
| commit | a46b8b8edea0caf94350895acd02f0c90a1027de (patch) | |
| tree | 378d05f11c9c3ea1e814e3b1d88f8a620bea4a9d /src/modules/m_dccallow.cpp | |
| parent | More const correctness. (diff) | |
Allow UserManager::Find{Nick,UUID,} to ignore unregistered users.
Diffstat (limited to 'src/modules/m_dccallow.cpp')
| -rw-r--r-- | src/modules/m_dccallow.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
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 |
