quit on HTTP commands: GET & POST
This commit is contained in:
parent
5417a72536
commit
33e8c24806
|
@ -692,6 +692,14 @@ IRC_QUIT( CLIENT *Client, REQUEST *Req )
|
|||
* @param Req Request structure with prefix and all parameters.
|
||||
* @returns CONNECTED or DISCONNECTED.
|
||||
*/
|
||||
GLOBAL bool
|
||||
IRC_QUIT_HTTP( CLIENT *Client, REQUEST *Req )
|
||||
{
|
||||
Req->argc = 0;
|
||||
return IRC_QUIT(Client, Req);
|
||||
}
|
||||
|
||||
|
||||
GLOBAL bool
|
||||
IRC_PING(CLIENT *Client, REQUEST *Req)
|
||||
{
|
||||
|
|
|
@ -25,6 +25,7 @@ GLOBAL bool IRC_WEBIRC PARAMS((CLIENT *Client, REQUEST *Req));
|
|||
GLOBAL bool IRC_PING PARAMS((CLIENT *Client, REQUEST *Req));
|
||||
GLOBAL bool IRC_PONG PARAMS((CLIENT *Client, REQUEST *Req));
|
||||
GLOBAL bool IRC_QUIT PARAMS((CLIENT *Client, REQUEST *Req));
|
||||
GLOBAL bool IRC_QUIT_HTTP PARAMS((CLIENT *Client, REQUEST *Req));
|
||||
|
||||
#endif
|
||||
|
||||
|
|
|
@ -85,6 +85,8 @@ static COMMAND My_Commands[] =
|
|||
{ "PONG", IRC_PONG, CLIENT_USER|CLIENT_SERVER, 0, 0, 0 },
|
||||
{ "PRIVMSG", IRC_PRIVMSG, CLIENT_USER|CLIENT_SERVER, 0, 0, 0 },
|
||||
{ "QUIT", IRC_QUIT, 0xFFFF, 0, 0, 0 },
|
||||
{ "GET", IRC_QUIT_HTTP, 0xFFFF, 0, 0, 0 },
|
||||
{ "POST", IRC_QUIT_HTTP, 0xFFFF, 0, 0, 0 },
|
||||
{ "REHASH", IRC_REHASH, CLIENT_USER, 0, 0, 0 },
|
||||
{ "RESTART", IRC_RESTART, CLIENT_USER, 0, 0, 0 },
|
||||
{ "SERVER", IRC_SERVER, 0xFFFF, 0, 0, 0 },
|
||||
|
|
Loading…
Reference in New Issue