diff options
author | Sadie Powell <sadie@witchery.services> | 2020-11-19 19:21:10 +0000 |
---|---|---|
committer | Sadie Powell <sadie@witchery.services> | 2020-11-20 12:10:47 +0000 |
commit | d4685e02b55229e0ca5068b839c87b5a80180f33 (patch) | |
tree | 76a9f59f6d9b103eb63397ceb26c8245b15b6a5f /src/modules/m_cloaking.cpp | |
parent | cc5965c45d2bccb6bd440aafb6bebfb98520ddd6 (diff) |
Avoid doing "IP changed" event stuff on quitting users.
Diffstat (limited to 'src/modules/m_cloaking.cpp')
-rw-r--r-- | src/modules/m_cloaking.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_cloaking.cpp b/src/modules/m_cloaking.cpp index 3f1774e7b..69f376d2c 100644 --- a/src/modules/m_cloaking.cpp +++ b/src/modules/m_cloaking.cpp @@ -493,7 +493,7 @@ class ModuleCloaking : public Module void OnSetUserIP(LocalUser* user) CXX11_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. |