Removes the unused "gone" presence state from the lobby. Refs #3383.
This was SVN commit r17358.
This commit is contained in:
parent
eeaffa05ee
commit
02c065e2c9
@ -218,7 +218,7 @@ function updatePlayerList()
|
||||
return g_PlayerListOrder;
|
||||
return 0;
|
||||
case 'status':
|
||||
let order = ["available", "away", "playing", "gone", "offline"];
|
||||
let order = ["available", "away", "playing", "offline"];
|
||||
let presenceA = order.indexOf(a.presence);
|
||||
let presenceB = order.indexOf(b.presence);
|
||||
if (presenceA < presenceB)
|
||||
@ -543,7 +543,6 @@ function formatPlayerListEntry(nickname, presence, rating)
|
||||
color = "125 0 0";
|
||||
status = translate("Busy");
|
||||
break;
|
||||
case "gone":
|
||||
case "away":
|
||||
color = "229 76 13";
|
||||
status = translate("Away");
|
||||
|
@ -924,7 +924,6 @@ void XmppClient::SetPresence(const std::string& presence)
|
||||
else IF("chat", Chat);
|
||||
else IF("away", Away);
|
||||
else IF("playing", DND);
|
||||
else IF("gone", XA);
|
||||
else IF("offline", Unavailable);
|
||||
// The others are not to be set
|
||||
#undef IF
|
||||
@ -978,7 +977,7 @@ void XmppClient::GetPresenceString(const gloox::Presence::PresenceType p, std::s
|
||||
CASE(Chat, "chat");
|
||||
CASE(Away, "away");
|
||||
CASE(DND, "playing");
|
||||
CASE(XA, "gone");
|
||||
CASE(XA, "away");
|
||||
CASE(Unavailable, "offline");
|
||||
CASE(Probe, "probe");
|
||||
CASE(Error, "error");
|
||||
|
Loading…
Reference in New Issue
Block a user