aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/m_cloaking.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2019-11-13 15:24:45 +0000
committerGravatar Sadie Powell2019-11-13 15:24:45 +0000
commit7b689363218f1f7cd8d07c4ec3eaf03788b196c1 (patch)
tree37bb397e948eac74cbd96a7e6ab637837622ffa0 /src/modules/m_cloaking.cpp
parentMerge branch 'insp3' into master. (diff)
parentImprove the logic around connecting to a MySQL server. (diff)
Merge branch 'insp3' into master.
Diffstat (limited to 'src/modules/m_cloaking.cpp')
-rw-r--r--src/modules/m_cloaking.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/modules/m_cloaking.cpp b/src/modules/m_cloaking.cpp
index 64b3936b2..78fbf2df1 100644
--- a/src/modules/m_cloaking.cpp
+++ b/src/modules/m_cloaking.cpp
@@ -375,12 +375,14 @@ class ModuleCloaking : public Module
{
u->SetMode(cu, false);
- if (!IS_LOCAL(u))
+ LocalUser* luser = IS_LOCAL(u);
+ if (!luser)
return;
+
Modes::ChangeList modechangelist;
modechangelist.push_remove(&cu);
ClientProtocol::Events::Mode modeevent(ServerInstance->FakeClient, NULL, u, modechangelist);
- static_cast<LocalUser*>(u)->Send(modeevent);
+ luser->Send(modeevent);
}
cu.active = false;
}