{"action":"closed","number":7544,"pull_request":{"url":"https://api.github.com/repos/tgstation/-tg-station/pulls/7544","id":28617260,"html_url":"https://github.com/tgstation/-tg-station/pull/7544","diff_url":"https://github.com/tgstation/-tg-station/pull/7544.diff","patch_url":"https://github.com/tgstation/-tg-station/pull/7544.patch","issue_url":"https://api.github.com/repos/tgstation/-tg-station/issues/7544","number":7544,"state":"closed","locked":false,"title":"Adds optional population caps","user":{"login":"Incoming5643","id":4176358,"avatar_url":"https://avatars.githubusercontent.com/u/4176358?v=3","gravatar_id":"","url":"https://api.github.com/users/Incoming5643","html_url":"https://github.com/Incoming5643","followers_url":"https://api.github.com/users/Incoming5643/followers","following_url":"https://api.github.com/users/Incoming5643/following{/other_user}","gists_url":"https://api.github.com/users/Incoming5643/gists{/gist_id}","starred_url":"https://api.github.com/users/Incoming5643/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Incoming5643/subscriptions","organizations_url":"https://api.github.com/users/Incoming5643/orgs","repos_url":"https://api.github.com/users/Incoming5643/repos","events_url":"https://api.github.com/users/Incoming5643/events{/privacy}","received_events_url":"https://api.github.com/users/Incoming5643/received_events","type":"User","site_admin":false},"body":"For those that want them. These be dark measures, so tread carefully ye who dare enter this place.\r\n\r\nThere are three \"levels\" of popcaps, and you can use them in any assortment you like:\r\n\r\n-The \"soft\" cap produces a message on join, and takes no action.\r\n-The \"hard\" cap disallows joining whilst too many other people are alive and playing in game, but allows observing.\r\n-The \"extreme\" cap prevents people from joining the server at all while the cap is exceeded. It won't kick out people who failed to qualify during roundstart, but if they leave they won't be able to get back in.\r\n\r\nIn each case a customizable message option has been given. Admins are also immune to most population caps (they still are hit by the ones in job shuffling, but can late join as normal afterwards). All popcaps default to off, seriously think long and hard about this.\r\n\r\nStandard disclaimer: It's really hard to test this on anything else than a legitimate server, so don't be all shocked if a hotfix or two is needed once people see how/if it actually performs.\r\n\r\nFixes #7537","created_at":"2015-02-04T07:01:24Z","updated_at":"2015-02-23T16:20:02Z","closed_at":"2015-02-23T16:20:02Z","merged_at":"2015-02-23T16:20:02Z","merge_commit_sha":"fc0a88a1a6e597621e7247550c6296d27c93a8c7","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/tgstation/-tg-station/pulls/7544/commits","review_comments_url":"https://api.github.com/repos/tgstation/-tg-station/pulls/7544/comments","review_comment_url":"https://api.github.com/repos/tgstation/-tg-station/pulls/comments{/number}","comments_url":"https://api.github.com/repos/tgstation/-tg-station/issues/7544/comments","statuses_url":"https://api.github.com/repos/tgstation/-tg-station/statuses/ab6997d1e6245854398462a4283a19b38e326e75","head":{"label":"Incoming5643:popcapgames","ref":"popcapgames","sha":"ab6997d1e6245854398462a4283a19b38e326e75","user":{"login":"Incoming5643","id":4176358,"avatar_url":"https://avatars.githubusercontent.com/u/4176358?v=3","gravatar_id":"","url":"https://api.github.com/users/Incoming5643","html_url":"https://github.com/Incoming5643","followers_url":"https://api.github.com/users/Incoming5643/followers","following_url":"https://api.github.com/users/Incoming5643/following{/other_user}","gists_url":"https://api.github.com/users/Incoming5643/gists{/gist_id}","starred_url":"https://api.github.com/users/Incoming5643/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Incoming5643/subscriptions","organizations_url":"https://api.github.com/users/Incoming5643/orgs","repos_url":"https://api.github.com/users/Incoming5643/repos","events_url":"https://api.github.com/users/Incoming5643/events{/privacy}","received_events_url":"https://api.github.com/users/Incoming5643/received_events","type":"User","site_admin":false},"repo":{"id":11689768,"name":"-tg-station","full_name":"Incoming5643/-tg-station","owner":{"login":"Incoming5643","id":4176358,"avatar_url":"https://avatars.githubusercontent.com/u/4176358?v=3","gravatar_id":"","url":"https://api.github.com/users/Incoming5643","html_url":"https://github.com/Incoming5643","followers_url":"https://api.github.com/users/Incoming5643/followers","following_url":"https://api.github.com/users/Incoming5643/following{/other_user}","gists_url":"https://api.github.com/users/Incoming5643/gists{/gist_id}","starred_url":"https://api.github.com/users/Incoming5643/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Incoming5643/subscriptions","organizations_url":"https://api.github.com/users/Incoming5643/orgs","repos_url":"https://api.github.com/users/Incoming5643/repos","events_url":"https://api.github.com/users/Incoming5643/events{/privacy}","received_events_url":"https://api.github.com/users/Incoming5643/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Incoming5643/-tg-station","description":"/tg/'s SS13 branch","fork":true,"url":"https://api.github.com/repos/Incoming5643/-tg-station","forks_url":"https://api.github.com/repos/Incoming5643/-tg-station/forks","keys_url":"https://api.github.com/repos/Incoming5643/-tg-station/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Incoming5643/-tg-station/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Incoming5643/-tg-station/teams","hooks_url":"https://api.github.com/repos/Incoming5643/-tg-station/hooks","issue_events_url":"https://api.github.com/repos/Incoming5643/-tg-station/issues/events{/number}","events_url":"https://api.github.com/repos/Incoming5643/-tg-station/events","assignees_url":"https://api.github.com/repos/Incoming5643/-tg-station/assignees{/user}","branches_url":"https://api.github.com/repos/Incoming5643/-tg-station/branches{/branch}","tags_url":"https://api.github.com/repos/Incoming5643/-tg-station/tags","blobs_url":"https://api.github.com/repos/Incoming5643/-tg-station/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Incoming5643/-tg-station/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Incoming5643/-tg-station/git/refs{/sha}","trees_url":"https://api.github.com/repos/Incoming5643/-tg-station/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Incoming5643/-tg-station/statuses/{sha}","languages_url":"https://api.github.com/repos/Incoming5643/-tg-station/languages","stargazers_url":"https://api.github.com/repos/Incoming5643/-tg-station/stargazers","contributors_url":"https://api.github.com/repos/Incoming5643/-tg-station/contributors","subscribers_url":"https://api.github.com/repos/Incoming5643/-tg-station/subscribers","subscription_url":"https://api.github.com/repos/Incoming5643/-tg-station/subscription","commits_url":"https://api.github.com/repos/Incoming5643/-tg-station/commits{/sha}","git_commits_url":"https://api.github.com/repos/Incoming5643/-tg-station/git/commits{/sha}","comments_url":"https://api.github.com/repos/Incoming5643/-tg-station/comments{/number}","issue_comment_url":"https://api.github.com/repos/Incoming5643/-tg-station/issues/comments{/number}","contents_url":"https://api.github.com/repos/Incoming5643/-tg-station/contents/{+path}","compare_url":"https://api.github.com/repos/Incoming5643/-tg-station/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Incoming5643/-tg-station/merges","archive_url":"https://api.github.com/repos/Incoming5643/-tg-station/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Incoming5643/-tg-station/downloads","issues_url":"https://api.github.com/repos/Incoming5643/-tg-station/issues{/number}","pulls_url":"https://api.github.com/repos/Incoming5643/-tg-station/pulls{/number}","milestones_url":"https://api.github.com/repos/Incoming5643/-tg-station/milestones{/number}","notifications_url":"https://api.github.com/repos/Incoming5643/-tg-station/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Incoming5643/-tg-station/labels{/name}","releases_url":"https://api.github.com/repos/Incoming5643/-tg-station/releases{/id}","created_at":"2013-07-26T16:18:28Z","updated_at":"2014-04-22T03:30:34Z","pushed_at":"2015-02-23T02:40:37Z","git_url":"git://github.com/Incoming5643/-tg-station.git","ssh_url":"git@github.com:Incoming5643/-tg-station.git","clone_url":"https://github.com/Incoming5643/-tg-station.git","svn_url":"https://github.com/Incoming5643/-tg-station","homepage":"","size":441660,"stargazers_count":0,"watchers_count":0,"language":"DM","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"tgstation:master","ref":"master","sha":"7622968e56a69b72c7c1829255701ae57afdef21","user":{"login":"tgstation","id":1363778,"avatar_url":"https://avatars.githubusercontent.com/u/1363778?v=3","gravatar_id":"","url":"https://api.github.com/users/tgstation","html_url":"https://github.com/tgstation","followers_url":"https://api.github.com/users/tgstation/followers","following_url":"https://api.github.com/users/tgstation/following{/other_user}","gists_url":"https://api.github.com/users/tgstation/gists{/gist_id}","starred_url":"https://api.github.com/users/tgstation/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tgstation/subscriptions","organizations_url":"https://api.github.com/users/tgstation/orgs","repos_url":"https://api.github.com/users/tgstation/repos","events_url":"https://api.github.com/users/tgstation/events{/privacy}","received_events_url":"https://api.github.com/users/tgstation/received_events","type":"Organization","site_admin":false},"repo":{"id":3234987,"name":"-tg-station","full_name":"tgstation/-tg-station","owner":{"login":"tgstation","id":1363778,"avatar_url":"https://avatars.githubusercontent.com/u/1363778?v=3","gravatar_id":"","url":"https://api.github.com/users/tgstation","html_url":"https://github.com/tgstation","followers_url":"https://api.github.com/users/tgstation/followers","following_url":"https://api.github.com/users/tgstation/following{/other_user}","gists_url":"https://api.github.com/users/tgstation/gists{/gist_id}","starred_url":"https://api.github.com/users/tgstation/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tgstation/subscriptions","organizations_url":"https://api.github.com/users/tgstation/orgs","repos_url":"https://api.github.com/users/tgstation/repos","events_url":"https://api.github.com/users/tgstation/events{/privacy}","received_events_url":"https://api.github.com/users/tgstation/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/tgstation/-tg-station","description":"/tg/'s SS13 branch","fork":false,"url":"https://api.github.com/repos/tgstation/-tg-station","forks_url":"https://api.github.com/repos/tgstation/-tg-station/forks","keys_url":"https://api.github.com/repos/tgstation/-tg-station/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tgstation/-tg-station/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tgstation/-tg-station/teams","hooks_url":"https://api.github.com/repos/tgstation/-tg-station/hooks","issue_events_url":"https://api.github.com/repos/tgstation/-tg-station/issues/events{/number}","events_url":"https://api.github.com/repos/tgstation/-tg-station/events","assignees_url":"https://api.github.com/repos/tgstation/-tg-station/assignees{/user}","branches_url":"https://api.github.com/repos/tgstation/-tg-station/branches{/branch}","tags_url":"https://api.github.com/repos/tgstation/-tg-station/tags","blobs_url":"https://api.github.com/repos/tgstation/-tg-station/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tgstation/-tg-station/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tgstation/-tg-station/git/refs{/sha}","trees_url":"https://api.github.com/repos/tgstation/-tg-station/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tgstation/-tg-station/statuses/{sha}","languages_url":"https://api.github.com/repos/tgstation/-tg-station/languages","stargazers_url":"https://api.github.com/repos/tgstation/-tg-station/stargazers","contributors_url":"https://api.github.com/repos/tgstation/-tg-station/contributors","subscribers_url":"https://api.github.com/repos/tgstation/-tg-station/subscribers","subscription_url":"https://api.github.com/repos/tgstation/-tg-station/subscription","commits_url":"https://api.github.com/repos/tgstation/-tg-station/commits{/sha}","git_commits_url":"https://api.github.com/repos/tgstation/-tg-station/git/commits{/sha}","comments_url":"https://api.github.com/repos/tgstation/-tg-station/comments{/number}","issue_comment_url":"https://api.github.com/repos/tgstation/-tg-station/issues/comments{/number}","contents_url":"https://api.github.com/repos/tgstation/-tg-station/contents/{+path}","compare_url":"https://api.github.com/repos/tgstation/-tg-station/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tgstation/-tg-station/merges","archive_url":"https://api.github.com/repos/tgstation/-tg-station/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tgstation/-tg-station/downloads","issues_url":"https://api.github.com/repos/tgstation/-tg-station/issues{/number}","pulls_url":"https://api.github.com/repos/tgstation/-tg-station/pulls{/number}","milestones_url":"https://api.github.com/repos/tgstation/-tg-station/milestones{/number}","notifications_url":"https://api.github.com/repos/tgstation/-tg-station/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tgstation/-tg-station/labels{/name}","releases_url":"https://api.github.com/repos/tgstation/-tg-station/releases{/id}","created_at":"2012-01-21T17:32:47Z","updated_at":"2015-02-23T16:10:44Z","pushed_at":"2015-02-23T16:20:02Z","git_url":"git://github.com/tgstation/-tg-station.git","ssh_url":"git@github.com:tgstation/-tg-station.git","clone_url":"https://github.com/tgstation/-tg-station.git","svn_url":"https://github.com/tgstation/-tg-station","homepage":"http://www.tgstation13.org/","size":604348,"stargazers_count":183,"watchers_count":183,"language":"DM","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":663,"mirror_url":null,"open_issues_count":769,"forks":663,"open_issues":769,"watchers":183,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/tgstation/-tg-station/pulls/7544"},"html":{"href":"https://github.com/tgstation/-tg-station/pull/7544"},"issue":{"href":"https://api.github.com/repos/tgstation/-tg-station/issues/7544"},"comments":{"href":"https://api.github.com/repos/tgstation/-tg-station/issues/7544/comments"},"review_comments":{"href":"https://api.github.com/repos/tgstation/-tg-station/pulls/7544/comments"},"review_comment":{"href":"https://api.github.com/repos/tgstation/-tg-station/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/tgstation/-tg-station/pulls/7544/commits"},"statuses":{"href":"https://api.github.com/repos/tgstation/-tg-station/statuses/ab6997d1e6245854398462a4283a19b38e326e75"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"Miauw62","id":3975713,"avatar_url":"https://avatars.githubusercontent.com/u/3975713?v=3","gravatar_id":"","url":"https://api.github.com/users/Miauw62","html_url":"https://github.com/Miauw62","followers_url":"https://api.github.com/users/Miauw62/followers","following_url":"https://api.github.com/users/Miauw62/following{/other_user}","gists_url":"https://api.github.com/users/Miauw62/gists{/gist_id}","starred_url":"https://api.github.com/users/Miauw62/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Miauw62/subscriptions","organizations_url":"https://api.github.com/users/Miauw62/orgs","repos_url":"https://api.github.com/users/Miauw62/repos","events_url":"https://api.github.com/users/Miauw62/events{/privacy}","received_events_url":"https://api.github.com/users/Miauw62/received_events","type":"User","site_admin":false},"comments":10,"review_comments":0,"commits":2,"additions":93,"deletions":5,"changed_files":8}}