[General] Fix incoming password string

pull/249/merge
Koncord 8 years ago
parent 0cf09adb44
commit 73cf134107

@ -65,7 +65,8 @@ ServerExtendedData getExtendedData(const char *addr, unsigned short port)
RakNet::RakPeerInterface *peer = RakNet::RakPeerInterface::GetInstance();
peer->Startup(1, &socketDescriptor, 1);
stringstream sstr(TES3MP_VERSION);
stringstream sstr;
sstr << TES3MP_VERSION;
sstr << TES3MP_PROTO_VERSION;
std::string msg = "";

@ -251,9 +251,11 @@ int main(int argc, char *argv[])
RakNet::RakPeerInterface *peer = RakNet::RakPeerInterface::GetInstance();
stringstream sstr(TES3MP_VERSION);
stringstream sstr;
sstr << TES3MP_VERSION;
sstr << TES3MP_PROTO_VERSION;
sstr << version.mCommitHash;
cout << sstr.str() << endl;
peer->SetIncomingPassword(sstr.str().c_str(), (int) sstr.str().size());

@ -249,7 +249,8 @@ void Networking::connect(const std::string &ip, unsigned short port, std::vector
master.SetPortHostOrder(port);
std::string errmsg = "";
stringstream sstr(TES3MP_VERSION);
stringstream sstr;
sstr << TES3MP_VERSION;
sstr << TES3MP_PROTO_VERSION;
sstr << Version::getOpenmwVersion(Main::getResDir()).mCommitHash;

Loading…
Cancel
Save