diff --git a/protocol.md b/protocol.md index ee4ac60..7239f91 100644 --- a/protocol.md +++ b/protocol.md @@ -477,16 +477,16 @@ TODO: MAKE THIS SECTION NOT LOOK LIKE SHIT ### Master / Slave #### M -> S (ID 2) -0x01: KEY SIZE WAS INCORRECT +100: KEY SIZE WAS INCORRECT -0x02: COULD NOT PARSE KEY +101: COULD NOT PARSE KEY #### M -> S (ID 4) -0x01: MAX AUTH ATTEMPTS REACHED +100: MAX AUTH ATTEMPTS REACHED -0x02: LICENSE DATA INCORRECT +101: LICENSE DATA INCORRECT -0x03: LICENSE LIMIT REACHED +102: LICENSE LIMIT REACHED ### Master / Client diff --git a/server/src/hosts/master_intra.cpp b/server/src/hosts/master_intra.cpp index ddfa351..bc31f3b 100644 --- a/server/src/hosts/master_intra.cpp +++ b/server/src/hosts/master_intra.cpp @@ -138,6 +138,11 @@ bool sosc::MasterIntra::Authentication(sosc::Packet &pck) { } } + query = this->queries->at(QRY_SERVER_LIST_ADD); + query->Reset(); + query->BindText(pck[0], pck[1], ); + query->NonQuery(); + _ctx.license_check_mtx.unlock(); this->authed = true;