aboutsummaryrefslogtreecommitdiff
path: root/modules/websocket.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/websocket.cpp')
-rw-r--r--modules/websocket.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/websocket.cpp b/modules/websocket.cpp
index bfec7673d..68cf0fb09 100644
--- a/modules/websocket.cpp
+++ b/modules/websocket.cpp
@@ -753,7 +753,7 @@ public:
if (type != ExtensionType::USER)
return;
- auto* user = IS_LOCAL(static_cast<User*>(item));
+ auto* user = static_cast<User*>(item)->AsLocal();
if (!user || !user->io->GetModHook(this))
return;