]> 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 863362a07b3e71221fdfde8b8fdc3060b2b4f166..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;
                                }
                        }
@@ -550,7 +554,7 @@ class ModuleWebSocket : public Module
 
        Version GetVersion() CXX11_OVERRIDE
        {
-               return Version("Provides RFC 6455 WebSocket support", VF_VENDOR);
+               return Version("Allows WebSocket clients to connect to the IRC server.", VF_VENDOR);
        }
 };