mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-15 16:41:29 +00:00
Merge pull request #632 from noudess/master
Change message from always saying Logging (In) to Logging in or Logging Out.
This commit is contained in:
commit
eab6bb8314
@ -449,17 +449,36 @@ bool Client::HandleSendLoginInfoPacket(const EQApplicationPacket *app) {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
cle->SetOnline();
|
|
||||||
|
|
||||||
if(minilogin){
|
if(minilogin){
|
||||||
|
cle->SetOnline();
|
||||||
WorldConfig::DisableStats();
|
WorldConfig::DisableStats();
|
||||||
Log(Logs::General, Logs::World_Server, "MiniLogin Account #%d",cle->AccountID());
|
Log(Logs::General, Logs::World_Server, "MiniLogin Account #%d",cle->AccountID());
|
||||||
}
|
}
|
||||||
else {
|
else if (!is_player_zoning) {
|
||||||
if (!is_player_zoning) {
|
// Track who is in and who is out of the game
|
||||||
Log(Logs::General, Logs::World_Server,
|
char *inout= (char *) "";
|
||||||
"Account (%s) Logging in :: LSID: %d ", cle->AccountName(), cle->LSID());
|
|
||||||
|
if (cle->GetOnline() == CLE_Status_Never){
|
||||||
|
// Desktop -> Char Select
|
||||||
|
inout = (char *) "In";
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
// Game -> Char Select
|
||||||
|
inout=(char *) "Out";
|
||||||
|
}
|
||||||
|
|
||||||
|
// Always at Char select at this point.
|
||||||
|
// Either from a fresh client launch or coming back from the game.
|
||||||
|
// Exiting the game entirely does not come through here.
|
||||||
|
// Could use a Logging Out Completely message somewhere.
|
||||||
|
cle->SetOnline(CLE_Status_CharSelect);
|
||||||
|
|
||||||
|
Log(Logs::General, Logs::World_Server,
|
||||||
|
"Account (%s) Logging(%s) to character select :: LSID: %d ",
|
||||||
|
cle->AccountName(), inout, cle->LSID());
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
cle->SetOnline();
|
||||||
}
|
}
|
||||||
|
|
||||||
const WorldConfig *Config=WorldConfig::get();
|
const WorldConfig *Config=WorldConfig::get();
|
||||||
@ -1021,6 +1040,7 @@ bool Client::HandlePacket(const EQApplicationPacket *app) {
|
|||||||
}
|
}
|
||||||
case OP_WorldLogout:
|
case OP_WorldLogout:
|
||||||
{
|
{
|
||||||
|
// I don't see this getting executed on logout
|
||||||
eqs->Close();
|
eqs->Close();
|
||||||
cle->SetOnline(CLE_Status_Offline); //allows this player to log in again without an ip restriction.
|
cle->SetOnline(CLE_Status_Offline); //allows this player to log in again without an ip restriction.
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
@ -50,6 +50,7 @@ public:
|
|||||||
inline const char* LSName() const { return plsname; }
|
inline const char* LSName() const { return plsname; }
|
||||||
inline int16 WorldAdmin() const { return pworldadmin; }
|
inline int16 WorldAdmin() const { return pworldadmin; }
|
||||||
inline const char* GetLSKey() const { return plskey; }
|
inline const char* GetLSKey() const { return plskey; }
|
||||||
|
inline const int8 GetOnline() const { return pOnline; }
|
||||||
|
|
||||||
// Account stuff
|
// Account stuff
|
||||||
inline uint32 AccountID() const { return paccountid; }
|
inline uint32 AccountID() const { return paccountid; }
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user