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_spanningtree/nick.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/modules/m_spanningtree/nick.cpp') diff --git a/src/modules/m_spanningtree/nick.cpp b/src/modules/m_spanningtree/nick.cpp index 734e81251..4663a5df2 100644 --- a/src/modules/m_spanningtree/nick.cpp +++ b/src/modules/m_spanningtree/nick.cpp @@ -37,8 +37,8 @@ CmdResult CommandNick::HandleRemote(::RemoteUser* user, Params& params) * On nick messages, check that the nick doesn't already exist here. * If it does, perform collision logic. */ - auto x = ServerInstance->Users.FindNick(params[0]); - if ((x) && (x != user) && (x->registered == REG_ALL)) + auto x = ServerInstance->Users.FindNick(params[0], true); + if (x && x != user) { // 'x' is the already existing user using the same nick as params[0] // 'user' is the user trying to change nick to the in use nick -- cgit v1.3.1-10-gc9f91