]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_websocket.cpp
Fail websocket connections if changing the user's IP errors.
[user/henk/code/inspircd.git] / src / modules / m_websocket.cpp
index e2b0ee30ad8d4b08217f0e159ca5952175cc033b..1cba6bca6ad5ca06202b2a6c740003b8478e4ec5 100644 (file)
@@ -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;
                                }
                        }