aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/m_cloaking.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/m_cloaking.cpp')
-rw-r--r--src/modules/m_cloaking.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_cloaking.cpp b/src/modules/m_cloaking.cpp
index 4cf366ebd..61cfbf82a 100644
--- a/src/modules/m_cloaking.cpp
+++ b/src/modules/m_cloaking.cpp
@@ -490,7 +490,7 @@ class ModuleCloaking : public Module
void OnSetUserIP(LocalUser* user) override
{
// Connecting users are handled in OnUserConnect not here.
- if (user->registered != REG_ALL)
+ if (user->registered != REG_ALL || user->quitting)
return;
// Remove the cloaks and generate new ones.