Skip to content

Commit c3ec205

Browse files
committed
usercountlimited for communityinfo #fix 2190
1 parent 6e9256c commit c3ec205

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

Shared/PlasmaShared/IContentService/IContentService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ public class PublicCommunityInfo
7474
public List<LadderItem> LadderItems { get; set; } = new List<LadderItem>();
7575
public List<ForumItem> ForumItems { get; set; } = new List<ForumItem>();
7676
public List<MapItem> MapItems { get; set; } = new List<MapItem>();
77-
77+
public bool UserCountLimited { get; set; }
7878
}
7979

8080
public class SpringBattleInfo

Zero-K.info/ContentService.svc.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,7 @@ public PublicCommunityInfo GetPublicCommunityInfo()
268268
info.NewsItems = Global.Server.NewsListManager.GetCurrentNewsList().NewsItems;
269269
info.LadderItems = Global.Server.LadderListManager.GetCurrentLadderList().LadderItems;
270270
info.ForumItems = Global.Server.ForumListManager.GetCurrentForumList(null).ForumItems;
271+
info.UserCountLimited = MiscVar.ZklsMaxUsers > 0;
271272
info.MapItems = MemCache.GetCached<List<MapItem>>("featuredMapItems",
272273
() =>
273274
{

0 commit comments

Comments
 (0)