summaryrefslogtreecommitdiff
path: root/src/modules/m_spanningtree/treesocket1.cpp
diff options
context:
space:
mode:
authordanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2009-10-01 21:41:52 +0000
committerdanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2009-10-01 21:41:52 +0000
commit75d9c67804196c2e4059f3ff89f2ed5ee79a175f (patch)
treee5275c998f06bbe13e198c7a42b2cfc917be5e4f /src/modules/m_spanningtree/treesocket1.cpp
parent6e6846b68a28d858275702e6662e79328e62c60e (diff)
Add ROUTE_TYPE_MESSAGE and use for PRIVMSG/NOTICE routing
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11791 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_spanningtree/treesocket1.cpp')
-rw-r--r--src/modules/m_spanningtree/treesocket1.cpp10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/modules/m_spanningtree/treesocket1.cpp b/src/modules/m_spanningtree/treesocket1.cpp
index 46effe48c..ad15a33c8 100644
--- a/src/modules/m_spanningtree/treesocket1.cpp
+++ b/src/modules/m_spanningtree/treesocket1.cpp
@@ -167,6 +167,7 @@ void TreeSocket::SendError(const std::string &errormessage)
/* Display the error locally as well as sending it remotely */
ServerInstance->SNO->WriteToSnoMask('l', "Sent \2ERROR\2 to %s: %s", (this->InboundServerName.empty() ? this->IP.c_str() : this->InboundServerName.c_str()), errormessage.c_str());
WriteLine("ERROR :"+errormessage);
+ SetError(errormessage);
}
/** This function forces this server to quit, removing this server
@@ -254,14 +255,7 @@ void TreeSocket::OnDataReady()
*/
if (ret.find("\r") != std::string::npos)
ret = recvq.substr(0,recvq.find("\r")-1);
- /* Process this one, abort if it
- * didnt return true.
- */
- if (!this->ProcessLine(ret))
- {
- SetError("ProcessLine returned false");
- break;
- }
+ ProcessLine(ret);
}
Utils->Creator->loopCall = false;
}