1
0
mirror of https://github.com/anope/anope.git synced 2026-07-02 21:03:13 +02:00

Merge usefulness of Flags and Extensible classes into Extensible, made most flags we have juse strings instead of defines/enums

This commit is contained in:
Adam
2013-01-21 22:31:16 -05:00
parent 51c049e1a7
commit ddaa001daf
128 changed files with 1857 additions and 2293 deletions
+8 -8
View File
@@ -30,12 +30,12 @@ bool ConnectionSocket::Process()
{
try
{
if (this->HasFlag(SF_CONNECTED))
if (this->flags[SF_CONNECTED])
return true;
else if (this->HasFlag(SF_CONNECTING))
this->SetFlag(this->io->FinishConnect(this));
else if (this->flags[SF_CONNECTING])
this->flags[this->io->FinishConnect(this)] = true;
else
this->SetFlag(SF_DEAD);
this->flags[SF_DEAD] = true;
}
catch (const SocketException &ex)
{
@@ -70,12 +70,12 @@ bool ClientSocket::Process()
{
try
{
if (this->HasFlag(SF_ACCEPTED))
if (this->flags[SF_ACCEPTED])
return true;
else if (this->HasFlag(SF_ACCEPTING))
this->SetFlag(this->io->FinishAccept(this));
else if (this->flags[SF_ACCEPTING])
this->flags[this->io->FinishAccept(this)] = true;
else
this->SetFlag(SF_DEAD);
this->flags[SF_DEAD] = true;
}
catch (const SocketException &ex)
{