{"action":"created","comment":{"url":"https://api.github.com/repos/Zarel/Pokemon-Showdown/pulls/comments/32277516","id":32277516,"diff_hunk":"@@ -842,18 +840,18 @@ var commands = exports.commands = {\n \tum: 'unmute',\n \tunmute: function (target, room, user) {\n \t\tif (!target) return this.parse('/help unmute');\n-\t\tif ((user.locked || user.mutedRooms[room.id]) && !user.can('bypassall')) return this.sendReply(\"You cannot do this while unable to talk.\");\n+\t\tif (room.isMuted(user) && !user.can('bypassall')) return this.sendReply(\"You cannot do this while unable to talk.\");\n \t\tvar targetUser = Users.get(target);\n \t\tif (!targetUser) return this.sendReply(\"User '\" + target + \"' does not exist.\");\n \t\tif (!this.can('mute', targetUser, room)) return false;","path":"commands.js","position":77,"original_position":77,"commit_id":"db187a5332c3dc710bd3b93c7a62d9a082bb063e","original_commit_id":"db187a5332c3dc710bd3b93c7a62d9a082bb063e","user":{"login":"SolarisFox","id":7889474,"avatar_url":"https://avatars.githubusercontent.com/u/7889474?v=3","gravatar_id":"","url":"https://api.github.com/users/SolarisFox","html_url":"https://github.com/SolarisFox","followers_url":"https://api.github.com/users/SolarisFox/followers","following_url":"https://api.github.com/users/SolarisFox/following{/other_user}","gists_url":"https://api.github.com/users/SolarisFox/gists{/gist_id}","starred_url":"https://api.github.com/users/SolarisFox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SolarisFox/subscriptions","organizations_url":"https://api.github.com/users/SolarisFox/orgs","repos_url":"https://api.github.com/users/SolarisFox/repos","events_url":"https://api.github.com/users/SolarisFox/events{/privacy}","received_events_url":"https://api.github.com/users/SolarisFox/received_events","type":"User","site_admin":false},"body":"I'm not sure how the `can('mute')` privileges work so I'm not sure how to make `/unmute` usable on offline users.","created_at":"2015-06-11T23:00:36Z","updated_at":"2015-06-11T23:00:36Z","html_url":"https://github.com/Zarel/Pokemon-Showdown/pull/1867#discussion_r32277516","pull_request_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown/pulls/1867","_links":{"self":{"href":"https://api.github.com/repos/Zarel/Pokemon-Showdown/pulls/comments/32277516"},"html":{"href":"https://github.com/Zarel/Pokemon-Showdown/pull/1867#discussion_r32277516"},"pull_request":{"href":"https://api.github.com/repos/Zarel/Pokemon-Showdown/pulls/1867"}}},"pull_request":{"url":"https://api.github.com/repos/Zarel/Pokemon-Showdown/pulls/1867","id":34880000,"html_url":"https://github.com/Zarel/Pokemon-Showdown/pull/1867","diff_url":"https://github.com/Zarel/Pokemon-Showdown/pull/1867.diff","patch_url":"https://github.com/Zarel/Pokemon-Showdown/pull/1867.patch","issue_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown/issues/1867","number":1867,"state":"open","locked":false,"title":"Mute refactor","user":{"login":"SolarisFox","id":7889474,"avatar_url":"https://avatars.githubusercontent.com/u/7889474?v=3","gravatar_id":"","url":"https://api.github.com/users/SolarisFox","html_url":"https://github.com/SolarisFox","followers_url":"https://api.github.com/users/SolarisFox/followers","following_url":"https://api.github.com/users/SolarisFox/following{/other_user}","gists_url":"https://api.github.com/users/SolarisFox/gists{/gist_id}","starred_url":"https://api.github.com/users/SolarisFox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SolarisFox/subscriptions","organizations_url":"https://api.github.com/users/SolarisFox/orgs","repos_url":"https://api.github.com/users/SolarisFox/repos","events_url":"https://api.github.com/users/SolarisFox/events{/privacy}","received_events_url":"https://api.github.com/users/SolarisFox/received_events","type":"User","site_admin":false},"body":"Move muting to `rooms.js` and run only one timer per room instead of one timer per room-user pair. Users are queued to use the unmute timer.","created_at":"2015-05-07T03:12:40Z","updated_at":"2015-06-11T23:00:36Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d6be8d72a2d20dac338504f4518be51eddd002d0","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown/pulls/1867/commits","review_comments_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown/pulls/1867/comments","review_comment_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown/issues/1867/comments","statuses_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown/statuses/db187a5332c3dc710bd3b93c7a62d9a082bb063e","head":{"label":"SolarisFox:patch-7","ref":"patch-7","sha":"db187a5332c3dc710bd3b93c7a62d9a082bb063e","user":{"login":"SolarisFox","id":7889474,"avatar_url":"https://avatars.githubusercontent.com/u/7889474?v=3","gravatar_id":"","url":"https://api.github.com/users/SolarisFox","html_url":"https://github.com/SolarisFox","followers_url":"https://api.github.com/users/SolarisFox/followers","following_url":"https://api.github.com/users/SolarisFox/following{/other_user}","gists_url":"https://api.github.com/users/SolarisFox/gists{/gist_id}","starred_url":"https://api.github.com/users/SolarisFox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SolarisFox/subscriptions","organizations_url":"https://api.github.com/users/SolarisFox/orgs","repos_url":"https://api.github.com/users/SolarisFox/repos","events_url":"https://api.github.com/users/SolarisFox/events{/privacy}","received_events_url":"https://api.github.com/users/SolarisFox/received_events","type":"User","site_admin":false},"repo":{"id":20943048,"name":"Pokemon-Showdown","full_name":"SolarisFox/Pokemon-Showdown","owner":{"login":"SolarisFox","id":7889474,"avatar_url":"https://avatars.githubusercontent.com/u/7889474?v=3","gravatar_id":"","url":"https://api.github.com/users/SolarisFox","html_url":"https://github.com/SolarisFox","followers_url":"https://api.github.com/users/SolarisFox/followers","following_url":"https://api.github.com/users/SolarisFox/following{/other_user}","gists_url":"https://api.github.com/users/SolarisFox/gists{/gist_id}","starred_url":"https://api.github.com/users/SolarisFox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SolarisFox/subscriptions","organizations_url":"https://api.github.com/users/SolarisFox/orgs","repos_url":"https://api.github.com/users/SolarisFox/repos","events_url":"https://api.github.com/users/SolarisFox/events{/privacy}","received_events_url":"https://api.github.com/users/SolarisFox/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/SolarisFox/Pokemon-Showdown","description":"Pokémon battle simulator.","fork":true,"url":"https://api.github.com/repos/SolarisFox/Pokemon-Showdown","forks_url":"https://api.github.com/repos/SolarisFox/Pokemon-Showdown/forks","keys_url":"https://api.github.com/repos/SolarisFox/Pokemon-Showdown/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SolarisFox/Pokemon-Showdown/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SolarisFox/Pokemon-Showdown/teams","hooks_url":"https://api.github.com/repos/SolarisFox/Pokemon-Showdown/hooks","issue_events_url":"https://api.github.com/repos/SolarisFox/Pokemon-Showdown/issues/events{/number}","events_url":"https://api.github.com/repos/SolarisFox/Pokemon-Showdown/events","assignees_url":"https://api.github.com/repos/SolarisFox/Pokemon-Showdown/assignees{/user}","branches_url":"https://api.github.com/repos/SolarisFox/Pokemon-Showdown/branches{/branch}","tags_url":"https://api.github.com/repos/SolarisFox/Pokemon-Showdown/tags","blobs_url":"https://api.github.com/repos/SolarisFox/Pokemon-Showdown/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SolarisFox/Pokemon-Showdown/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SolarisFox/Pokemon-Showdown/git/refs{/sha}","trees_url":"https://api.github.com/repos/SolarisFox/Pokemon-Showdown/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SolarisFox/Pokemon-Showdown/statuses/{sha}","languages_url":"https://api.github.com/repos/SolarisFox/Pokemon-Showdown/languages","stargazers_url":"https://api.github.com/repos/SolarisFox/Pokemon-Showdown/stargazers","contributors_url":"https://api.github.com/repos/SolarisFox/Pokemon-Showdown/contributors","subscribers_url":"https://api.github.com/repos/SolarisFox/Pokemon-Showdown/subscribers","subscription_url":"https://api.github.com/repos/SolarisFox/Pokemon-Showdown/subscription","commits_url":"https://api.github.com/repos/SolarisFox/Pokemon-Showdown/commits{/sha}","git_commits_url":"https://api.github.com/repos/SolarisFox/Pokemon-Showdown/git/commits{/sha}","comments_url":"https://api.github.com/repos/SolarisFox/Pokemon-Showdown/comments{/number}","issue_comment_url":"https://api.github.com/repos/SolarisFox/Pokemon-Showdown/issues/comments{/number}","contents_url":"https://api.github.com/repos/SolarisFox/Pokemon-Showdown/contents/{+path}","compare_url":"https://api.github.com/repos/SolarisFox/Pokemon-Showdown/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SolarisFox/Pokemon-Showdown/merges","archive_url":"https://api.github.com/repos/SolarisFox/Pokemon-Showdown/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SolarisFox/Pokemon-Showdown/downloads","issues_url":"https://api.github.com/repos/SolarisFox/Pokemon-Showdown/issues{/number}","pulls_url":"https://api.github.com/repos/SolarisFox/Pokemon-Showdown/pulls{/number}","milestones_url":"https://api.github.com/repos/SolarisFox/Pokemon-Showdown/milestones{/number}","notifications_url":"https://api.github.com/repos/SolarisFox/Pokemon-Showdown/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SolarisFox/Pokemon-Showdown/labels{/name}","releases_url":"https://api.github.com/repos/SolarisFox/Pokemon-Showdown/releases{/id}","created_at":"2014-06-17T23:39:45Z","updated_at":"2015-04-25T22:58:43Z","pushed_at":"2015-06-11T22:54:52Z","git_url":"git://github.com/SolarisFox/Pokemon-Showdown.git","ssh_url":"git@github.com:SolarisFox/Pokemon-Showdown.git","clone_url":"https://github.com/SolarisFox/Pokemon-Showdown.git","svn_url":"https://github.com/SolarisFox/Pokemon-Showdown","homepage":"http://pokemonshowdown.com","size":40845,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"Zarel:master","ref":"master","sha":"cb2e688256c1c774016c1565cc34e01469d6ff36","user":{"login":"Zarel","id":551184,"avatar_url":"https://avatars.githubusercontent.com/u/551184?v=3","gravatar_id":"","url":"https://api.github.com/users/Zarel","html_url":"https://github.com/Zarel","followers_url":"https://api.github.com/users/Zarel/followers","following_url":"https://api.github.com/users/Zarel/following{/other_user}","gists_url":"https://api.github.com/users/Zarel/gists{/gist_id}","starred_url":"https://api.github.com/users/Zarel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Zarel/subscriptions","organizations_url":"https://api.github.com/users/Zarel/orgs","repos_url":"https://api.github.com/users/Zarel/repos","events_url":"https://api.github.com/users/Zarel/events{/privacy}","received_events_url":"https://api.github.com/users/Zarel/received_events","type":"User","site_admin":false},"repo":{"id":3038446,"name":"Pokemon-Showdown","full_name":"Zarel/Pokemon-Showdown","owner":{"login":"Zarel","id":551184,"avatar_url":"https://avatars.githubusercontent.com/u/551184?v=3","gravatar_id":"","url":"https://api.github.com/users/Zarel","html_url":"https://github.com/Zarel","followers_url":"https://api.github.com/users/Zarel/followers","following_url":"https://api.github.com/users/Zarel/following{/other_user}","gists_url":"https://api.github.com/users/Zarel/gists{/gist_id}","starred_url":"https://api.github.com/users/Zarel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Zarel/subscriptions","organizations_url":"https://api.github.com/users/Zarel/orgs","repos_url":"https://api.github.com/users/Zarel/repos","events_url":"https://api.github.com/users/Zarel/events{/privacy}","received_events_url":"https://api.github.com/users/Zarel/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Zarel/Pokemon-Showdown","description":"Pokémon battle simulator.","fork":false,"url":"https://api.github.com/repos/Zarel/Pokemon-Showdown","forks_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown/forks","keys_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown/teams","hooks_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown/hooks","issue_events_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown/issues/events{/number}","events_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown/events","assignees_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown/assignees{/user}","branches_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown/branches{/branch}","tags_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown/tags","blobs_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown/git/refs{/sha}","trees_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown/statuses/{sha}","languages_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown/languages","stargazers_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown/stargazers","contributors_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown/contributors","subscribers_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown/subscribers","subscription_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown/subscription","commits_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown/commits{/sha}","git_commits_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown/git/commits{/sha}","comments_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown/comments{/number}","issue_comment_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown/issues/comments{/number}","contents_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown/contents/{+path}","compare_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown/merges","archive_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown/downloads","issues_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown/issues{/number}","pulls_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown/pulls{/number}","milestones_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown/milestones{/number}","notifications_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown/labels{/name}","releases_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown/releases{/id}","created_at":"2011-12-23T04:52:33Z","updated_at":"2015-06-11T03:38:45Z","pushed_at":"2015-06-11T22:54:54Z","git_url":"git://github.com/Zarel/Pokemon-Showdown.git","ssh_url":"git@github.com:Zarel/Pokemon-Showdown.git","clone_url":"https://github.com/Zarel/Pokemon-Showdown.git","svn_url":"https://github.com/Zarel/Pokemon-Showdown","homepage":"http://pokemonshowdown.com","size":91429,"stargazers_count":517,"watchers_count":517,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":686,"mirror_url":null,"open_issues_count":34,"forks":686,"open_issues":34,"watchers":517,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Zarel/Pokemon-Showdown/pulls/1867"},"html":{"href":"https://github.com/Zarel/Pokemon-Showdown/pull/1867"},"issue":{"href":"https://api.github.com/repos/Zarel/Pokemon-Showdown/issues/1867"},"comments":{"href":"https://api.github.com/repos/Zarel/Pokemon-Showdown/issues/1867/comments"},"review_comments":{"href":"https://api.github.com/repos/Zarel/Pokemon-Showdown/pulls/1867/comments"},"review_comment":{"href":"https://api.github.com/repos/Zarel/Pokemon-Showdown/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Zarel/Pokemon-Showdown/pulls/1867/commits"},"statuses":{"href":"https://api.github.com/repos/Zarel/Pokemon-Showdown/statuses/db187a5332c3dc710bd3b93c7a62d9a082bb063e"}}}}