MCPcopy Create free account
hub / github.com/cuberite/cuberite / SendDisconnect

Method SendDisconnect

src/ClientHandle.cpp:1983–1991  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1981
1982
1983void cClientHandle::SendDisconnect(const AString & a_Reason)
1984{
1985 if (!m_HasSentDC)
1986 {
1987 LOGD("Sending a DC: \"%s\"", StripColorCodes(a_Reason).c_str());
1988 m_Protocol->SendDisconnect(a_Reason);
1989 m_HasSentDC = true;
1990 }
1991}
1992
1993
1994

Callers

nothing calls this directly

Calls 2

StripColorCodesFunction · 0.85
c_strMethod · 0.80

Tested by

no test coverage detected