diff options
-rw-r--r-- | src/modules/m_websocket.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/modules/m_websocket.cpp b/src/modules/m_websocket.cpp index e2b0ee30a..1cba6bca6 100644 --- a/src/modules/m_websocket.cpp +++ b/src/modules/m_websocket.cpp @@ -370,6 +370,10 @@ class WebSocketHook : public IOHookMiddle // Give the user their real IP address. if (realsa != luser->client_sa) luser->SetClientIP(realsa); + + // Error if changing their IP gets them banned. + if (luser->quitting) + return -1; break; } } |