diff options
author | Adam <Adam@anope.org> | 2016-12-17 21:44:22 -0500 |
---|---|---|
committer | Adam <Adam@anope.org> | 2016-12-17 21:44:22 -0500 |
commit | 4fcbbbe4fbc137841b47c8e2372477b85649270a (patch) | |
tree | f2a5fd3b5a77ef0384df6e2712fdd74f832d7dfe /src/uplink.cpp | |
parent | ed08d1a31119adb379f8bec46d7ad47ee35c4c92 (diff) |
Split ircdproto send functions out into separate services
This makes it easier to see which send functions a protocol module
implements as they are all explicitly registered by the module, and
avoids the problem of subtly breaking other protocol modules when
using inheritance.
Also split the old "core" send implementations out into a module, and
the TS6 ID generator
Diffstat (limited to 'src/uplink.cpp')
-rw-r--r-- | src/uplink.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/uplink.cpp b/src/uplink.cpp index c2b7579c5..1615eef9d 100644 --- a/src/uplink.cpp +++ b/src/uplink.cpp @@ -105,7 +105,7 @@ UplinkSocket::~UplinkSocket() } } - IRCD->SendSquit(Me, Anope::QuitReason); + IRCD->Send<messages::SQuit>(Me, Anope::QuitReason); this->ProcessWrite(); // Write out the last bit } @@ -155,7 +155,7 @@ bool UplinkSocket::ProcessRead() void UplinkSocket::OnConnect() { Log(LOG_TERMINAL) << "Successfully connected to uplink #" << (Anope::CurrentUplink + 1) << " " << Config->Uplinks[Anope::CurrentUplink].host << ":" << Config->Uplinks[Anope::CurrentUplink].port; - IRCD->SendConnect(); + IRCD->Handshake(); EventManager::Get()->Dispatch(&Event::ServerConnect::OnServerConnect); } |