{"action":"created","comment":{"url":"https://api.github.com/repos/Zarel/Pokemon-Showdown/pulls/comments/32375524","id":32375524,"diff_hunk":"@@ -842,18 +840,17 @@ 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\tif (!this.can('mute', null, room)) return false;\n+\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;\n+\t\tvar successfullyUnmuted = room.unmute(targetUser ? targetUser.userid : toId(target));","path":"commands.js","position":80,"original_position":80,"commit_id":"098a68150bebfdbdefa3c4a3e82c2670baffc010","original_commit_id":"098a68150bebfdbdefa3c4a3e82c2670baffc010","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},"body":"Oh, wait, you didn't `splitTarget`. You should be using `splitTarget`.","created_at":"2015-06-14T01:50:08Z","updated_at":"2015-06-14T01:50:08Z","html_url":"https://github.com/Zarel/Pokemon-Showdown/pull/1867#discussion_r32375524","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/32375524"},"html":{"href":"https://github.com/Zarel/Pokemon-Showdown/pull/1867#discussion_r32375524"},"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-14T01:50:08Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c04b6d126f21e58f5e617438f5d8b5755f9f7aea","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/098a68150bebfdbdefa3c4a3e82c2670baffc010","head":{"label":"SolarisFox:patch-7","ref":"patch-7","sha":"098a68150bebfdbdefa3c4a3e82c2670baffc010","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-14T01:47:55Z","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":41766,"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":"ef4b078a82909af78aa98ac49c8eb4205f844a0a","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-12T22:52:07Z","pushed_at":"2015-06-14T01:47:56Z","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":92286,"stargazers_count":516,"watchers_count":516,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":688,"mirror_url":null,"open_issues_count":32,"forks":688,"open_issues":32,"watchers":516,"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/098a68150bebfdbdefa3c4a3e82c2670baffc010"}}}}