Author: Bleep <helveytw@home.com>
[ircu2.10.12-pk.git] / ircd / parse.c
index 2a4287b1caafa577369d72cbc0f40d988a6c96f6..b2c7657338d51dd936b7a78d38968f15a8991acf 100644 (file)
@@ -532,6 +532,19 @@ struct Message msgtab[] = {
     /* UNREG, CLIENT, SERVER, OPER, SERVICE */
     { m_proto, m_proto, m_proto, m_proto, m_ignore }
   },
+  /* This command is an alias for QUIT during the unregistered part of
+   * of the server.  This is because someone jumping via a broken web
+   * proxy will send a 'POST' as their first command - which we will
+   * obviously disconnect them immediately for, stopping people abusing
+   * open gateways
+   */
+  {
+    MSG_POST,
+    TOK_POST,
+    0, MAXPARA, MFLG_SLOW, 0,
+    /* UNREG, CLIENT, SERVER, OPER, SERVICE */
+    { m_quit, m_ignore, m_ignore, m_ignore, m_ignore }
+  },  
   { 0 }
 };