Skip to content

Commit eaf8b29

Browse files
committed
Only report openhost for public rooms
1 parent 6e83595 commit eaf8b29

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

qr2/group_info.go

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,9 +110,15 @@ func getGroupsRaw(gameNames []string, groupNames []string) []GroupInfo {
110110

111111
if login := session.login; login != nil {
112112
mapData["+ingamesn"] = login.InGameName
113-
mapData["+openhost"] = strconv.FormatBool(login.OpenHost)
113+
114+
if groupInfo.MatchType == "anybody" {
115+
mapData["+openhost"] = strconv.FormatBool(login.OpenHost)
116+
} else {
117+
mapData["+openhost"] = ""
118+
}
114119
} else {
115120
mapData["+ingamesn"] = ""
121+
mapData["+openhost"] = ""
116122
}
117123

118124
groupInfo.PlayersRaw[mapData["+joinindex"]] = mapData

0 commit comments

Comments
 (0)