aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/m_websocket.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/m_websocket.cpp')
-rw-r--r--src/modules/m_websocket.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_websocket.cpp b/src/modules/m_websocket.cpp
index 3e3794e82..4d70ca549 100644
--- a/src/modules/m_websocket.cpp
+++ b/src/modules/m_websocket.cpp
@@ -286,7 +286,7 @@ class WebSocketHook final
if (GetRecvQ().empty())
return 0;
- unsigned char opcode = (unsigned char)GetRecvQ().c_str()[0];
+ unsigned char opcode = (unsigned char)GetRecvQ()[0];
switch (opcode & ~WS_FINBIT)
{
case OP_CONTINUATION: