diff options
| author | littleblack111 <littleblack11111@gmail.com> | 2025-06-13 17:50:14 +0800 |
|---|---|---|
| committer | littleblack111 <littleblack11111@gmail.com> | 2025-06-13 20:22:51 +0800 |
| commit | 23492ea6f58762914a91516be6a9c180969178a2 (patch) | |
| tree | f98de137fac7944f58672f64fc367b619d71a937 | |
| parent | e3bd785b8e71e4ca8b616b793fc4639006037fe2 (diff) | |
fix: don't announce leave if client is not registered
| -rw-r--r-- | src/core/sessionManager.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/sessionManager.cpp b/src/core/sessionManager.cpp index 6c002a5..e7a786b 100644 --- a/src/core/sessionManager.cpp +++ b/src/core/sessionManager.cpp @@ -115,7 +115,7 @@ void CSessionManager::kick(std::weak_ptr<CSession> session_weak, const bool kill for (auto it = m_vSessions.begin(); it != m_vSessions.end(); ++it) { if (it->second == session) { - if (session) + if (session && !session->getName().empty()) // this only exist when the session is registered // not sure why the second is null, but m_name definately is since it's setted during register // but we don't need to notify people if the session didn't even "join"/register anyways |
