diff options
author | faketruth <faketruth@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-09-05 22:30:27 +0200 |
---|---|---|
committer | faketruth <faketruth@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-09-05 22:30:27 +0200 |
commit | f94456dd3eccc65a6f304d4b804ca09a67fa6008 (patch) | |
tree | 9997e63b9e0152661232aff9c78b78f2b215233e /source/Protocol132.cpp | |
parent | ProtoProxy: Added about 10 new packet types parsed (diff) | |
download | cuberite-f94456dd3eccc65a6f304d4b804ca09a67fa6008.tar cuberite-f94456dd3eccc65a6f304d4b804ca09a67fa6008.tar.gz cuberite-f94456dd3eccc65a6f304d4b804ca09a67fa6008.tar.bz2 cuberite-f94456dd3eccc65a6f304d4b804ca09a67fa6008.tar.lz cuberite-f94456dd3eccc65a6f304d4b804ca09a67fa6008.tar.xz cuberite-f94456dd3eccc65a6f304d4b804ca09a67fa6008.tar.zst cuberite-f94456dd3eccc65a6f304d4b804ca09a67fa6008.zip |
Diffstat (limited to 'source/Protocol132.cpp')
-rw-r--r-- | source/Protocol132.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/Protocol132.cpp b/source/Protocol132.cpp index 2765b66b2..d7cd70723 100644 --- a/source/Protocol132.cpp +++ b/source/Protocol132.cpp @@ -332,6 +332,11 @@ int cProtocol132::ParseHandshake(void) HANDLE_PACKET_READ(ReadBEInt, int, ServerPort);
m_Username = Username;
+ if (!m_Client->HandleHandshake( m_Username ))
+ {
+ return PARSE_OK; // Player is not allowed into the server
+ }
+
// Send a 0xFD Encryption Key Request http://wiki.vg/Protocol#0xFD
AString key;
CryptoPP::StringSink sink(key); // GCC won't allow inline instantiation in the following line, damned temporary refs
|