mirror of
https://github.com/anope/anope.git
synced 2026-06-27 15:46:39 +02:00
Remove the asynchronous identifing hack and replace it with something better. Fixes m_*_authentication only being able to properly work when people identify normally using nickserv/identify
This commit is contained in:
@@ -35,7 +35,7 @@ static Anope::string GetStatusFromCode(HTTPError err)
|
||||
return "501 Not Implemented";
|
||||
}
|
||||
|
||||
class MyHTTPClient : public HTTPClient, public Base
|
||||
class MyHTTPClient : public HTTPClient
|
||||
{
|
||||
HTTPProvider *provider;
|
||||
HTTPMessage header;
|
||||
@@ -78,9 +78,8 @@ class MyHTTPClient : public HTTPClient, public Base
|
||||
|
||||
HTTPReply reply;
|
||||
|
||||
this->page->OnRequest(this->provider, this->page_name, this, this->header, reply);
|
||||
|
||||
this->SendReply(&reply);
|
||||
if (this->page->OnRequest(this->provider, this->page_name, this, this->header, reply))
|
||||
this->SendReply(&reply);
|
||||
}
|
||||
|
||||
public:
|
||||
|
||||
Reference in New Issue
Block a user