mirror of
https://github.com/anope/anope.git
synced 2026-07-09 07:23:14 +02:00
Use the return from BufferedSocket::ProcessRead() and don't just assume its true
This commit is contained in:
@@ -127,13 +127,13 @@ class HTTPProxyConnect : public ProxyConnect, public BufferedSocket
|
||||
|
||||
bool ProcessRead() anope_override
|
||||
{
|
||||
BufferedSocket::ProcessRead();
|
||||
bool b = BufferedSocket::ProcessRead();
|
||||
if (this->GetLine() == ProxyCheckString)
|
||||
{
|
||||
this->Ban();
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
return b;
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
+2
-2
@@ -118,13 +118,13 @@ UplinkSocket::~UplinkSocket()
|
||||
|
||||
bool UplinkSocket::ProcessRead()
|
||||
{
|
||||
BufferedSocket::ProcessRead();
|
||||
bool b = BufferedSocket::ProcessRead();
|
||||
for (Anope::string buf; (buf = this->GetLine()).empty() == false;)
|
||||
{
|
||||
Anope::Process(buf);
|
||||
User::QuitUsers();
|
||||
}
|
||||
return true;
|
||||
return b;
|
||||
}
|
||||
|
||||
void UplinkSocket::OnConnect()
|
||||
|
||||
Reference in New Issue
Block a user