Skip to content
Permalink
Browse files

Merge pull request #918 from silentwings/master

update login syntax
  • Loading branch information...
abma committed Jul 27, 2019
2 parents f60373e + da22143 commit 09bb1ce2e47fb1342d77b2bda5c0946b83fe2a38
Showing with 9 additions and 2 deletions.
  1. +8 −2 src/tasserver.cpp
  2. +1 −0 src/tasserver.h
@@ -11,6 +11,7 @@ lsl/networking/tasserver.cpp
**/
#include "tasserver.h"

#include <lslunitsync/unitsync.h>
#include <json/reader.h>
#include <lslutils/misc.h>
#include <wx/intl.h>
@@ -366,6 +367,11 @@ const User& TASServer::GetMe() const
return GetUser(GetUserName());
}

const std::string TASServer::GetSys()
{
return LSL::usync().GetSys().substr(0,16);
}

void TASServer::Login()
{
slLogDebugFunc("");
@@ -377,9 +383,9 @@ void TASServer::Login()
if (localaddr.empty())
localaddr = "*";
m_id_transmission = false;
SendCmd("LOGIN", stdprintf("%s %s 0 %s %s\t%u\tsp cl u l t",
SendCmd("LOGIN", stdprintf("%s %s 0 %s %s\t%u %s\tsp cl u l t",
GetUserName().c_str(), pass.c_str(), localaddr.c_str(),
GetSpringlobbyAgent().c_str(), m_crc.GetCRC()));
GetSpringlobbyAgent().c_str(), m_crc.GetCRC(), GetSys().c_str()));
m_id_transmission = true;
}

@@ -178,6 +178,7 @@ class TASServer : public IServer, public iNetClass, public wxTimer
};

CRC m_crc;
const std::string GetSys();

ServerEvents* m_se;
Socket* m_sock;

0 comments on commit 09bb1ce

Please sign in to comment.
You can’t perform that action at this time.