diff --git a/src/ngircd/irc-login.c b/src/ngircd/irc-login.c index f76a6270..3c4eb189 100644 --- a/src/ngircd/irc-login.c +++ b/src/ngircd/irc-login.c @@ -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) { diff --git a/src/ngircd/irc-login.h b/src/ngircd/irc-login.h index 7ba53571..f3138f6e 100644 --- a/src/ngircd/irc-login.h +++ b/src/ngircd/irc-login.h @@ -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 diff --git a/src/ngircd/parse.c b/src/ngircd/parse.c index 7c56a03d..51149da5 100644 --- a/src/ngircd/parse.c +++ b/src/ngircd/parse.c @@ -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 },