} /* IRC_QUIT */
+#ifndef STRICT_RFC
+
/**
- * Handler for the IRC "PING" command.
+ * Handler for HTTP command, e.g. GET and POST
*
- * See RFC 2812, 3.7.2 "Ping message".
+ * We handle these commands here to avoid the quite long timeout when
+ * some user tries to access this IRC daemon using an web browser ...
*
* @param Client The client from which this command has been received.
* @param Req Request structure with prefix and all parameters.
GLOBAL bool
IRC_QUIT_HTTP( CLIENT *Client, REQUEST *Req )
{
- Req->argc = 0;
+ Req->argc = 1;
+ Req->argv[0] = "Oops, HTTP request received? This is IRC!";
return IRC_QUIT(Client, Req);
-}
+} /* IRC_QUIT_HTTP */
+
+#endif
+/**
+ * Handler for the IRC "PING" command.
+ *
+ * See RFC 2812, 3.7.2 "Ping message".
+ *
+ * @param Client The client from which this command has been received.
+ * @param Req Request structure with prefix and all parameters.
+ * @returns CONNECTED or DISCONNECTED.
+ */
GLOBAL bool
IRC_PING(CLIENT *Client, REQUEST *Req)
{