{"action":"created","comment":{"url":"https://api.github.com/repos/Zarel/Pokemon-Showdown-Client/pulls/comments/52082017","id":52082017,"diff_hunk":"@@ -93,7 +93,9 @@\n \t\t\t\tthis.tabComplete.reset();\n \t\t\t\tthis.chatHistory.push(text);\n \t\t\t\ttext = this.parseCommand(text);\n-\t\t\t\tif (text) {\n+\t\t\t\tif (this.id.slice(0, 7) === 'battle-' && this.battle.ignoreSpects && app.user.get('userid') !== this.battle.p1.id && app.user.get('userid') !== this.battle.p2.id) {","path":"js/client-chat.js","position":5,"original_position":5,"commit_id":"4c30c24a7ecf6f4353240f385d8b87b486869446","original_commit_id":"4c30c24a7ecf6f4353240f385d8b87b486869446","user":{"login":"Teremiare","id":14843149,"avatar_url":"https://avatars.githubusercontent.com/u/14843149?v=3","gravatar_id":"","url":"https://api.github.com/users/Teremiare","html_url":"https://github.com/Teremiare","followers_url":"https://api.github.com/users/Teremiare/followers","following_url":"https://api.github.com/users/Teremiare/following{/other_user}","gists_url":"https://api.github.com/users/Teremiare/gists{/gist_id}","starred_url":"https://api.github.com/users/Teremiare/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Teremiare/subscriptions","organizations_url":"https://api.github.com/users/Teremiare/orgs","repos_url":"https://api.github.com/users/Teremiare/repos","events_url":"https://api.github.com/users/Teremiare/events{/privacy}","received_events_url":"https://api.github.com/users/Teremiare/received_events","type":"User","site_admin":false},"body":"I was remembering it causing issues when it actually was `room.battle` that was the problem and ended up not making that change, so yeah...","created_at":"2016-02-05T22:33:11Z","updated_at":"2016-02-05T22:33:11Z","html_url":"https://github.com/Zarel/Pokemon-Showdown-Client/pull/636#discussion_r52082017","pull_request_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown-Client/pulls/636","_links":{"self":{"href":"https://api.github.com/repos/Zarel/Pokemon-Showdown-Client/pulls/comments/52082017"},"html":{"href":"https://github.com/Zarel/Pokemon-Showdown-Client/pull/636#discussion_r52082017"},"pull_request":{"href":"https://api.github.com/repos/Zarel/Pokemon-Showdown-Client/pulls/636"}}},"pull_request":{"url":"https://api.github.com/repos/Zarel/Pokemon-Showdown-Client/pulls/636","id":57780662,"html_url":"https://github.com/Zarel/Pokemon-Showdown-Client/pull/636","diff_url":"https://github.com/Zarel/Pokemon-Showdown-Client/pull/636.diff","patch_url":"https://github.com/Zarel/Pokemon-Showdown-Client/pull/636.patch","issue_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown-Client/issues/636","number":636,"state":"open","locked":false,"title":"Don't let spectators chat in battles when they're ignoring spectators","user":{"login":"Teremiare","id":14843149,"avatar_url":"https://avatars.githubusercontent.com/u/14843149?v=3","gravatar_id":"","url":"https://api.github.com/users/Teremiare","html_url":"https://github.com/Teremiare","followers_url":"https://api.github.com/users/Teremiare/followers","following_url":"https://api.github.com/users/Teremiare/following{/other_user}","gists_url":"https://api.github.com/users/Teremiare/gists{/gist_id}","starred_url":"https://api.github.com/users/Teremiare/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Teremiare/subscriptions","organizations_url":"https://api.github.com/users/Teremiare/orgs","repos_url":"https://api.github.com/users/Teremiare/repos","events_url":"https://api.github.com/users/Teremiare/events{/privacy}","received_events_url":"https://api.github.com/users/Teremiare/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-01-31T21:22:27Z","updated_at":"2016-02-05T22:33:11Z","closed_at":null,"merged_at":null,"merge_commit_sha":"dc78ca3e2a96ad25d59ac5199aab6b3d0171ae13","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown-Client/pulls/636/commits","review_comments_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown-Client/pulls/636/comments","review_comment_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown-Client/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown-Client/issues/636/comments","statuses_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown-Client/statuses/4c30c24a7ecf6f4353240f385d8b87b486869446","head":{"label":"Teremiare:patch-7","ref":"patch-7","sha":"4c30c24a7ecf6f4353240f385d8b87b486869446","user":{"login":"Teremiare","id":14843149,"avatar_url":"https://avatars.githubusercontent.com/u/14843149?v=3","gravatar_id":"","url":"https://api.github.com/users/Teremiare","html_url":"https://github.com/Teremiare","followers_url":"https://api.github.com/users/Teremiare/followers","following_url":"https://api.github.com/users/Teremiare/following{/other_user}","gists_url":"https://api.github.com/users/Teremiare/gists{/gist_id}","starred_url":"https://api.github.com/users/Teremiare/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Teremiare/subscriptions","organizations_url":"https://api.github.com/users/Teremiare/orgs","repos_url":"https://api.github.com/users/Teremiare/repos","events_url":"https://api.github.com/users/Teremiare/events{/privacy}","received_events_url":"https://api.github.com/users/Teremiare/received_events","type":"User","site_admin":false},"repo":{"id":48446056,"name":"Pokemon-Showdown-Client","full_name":"Teremiare/Pokemon-Showdown-Client","owner":{"login":"Teremiare","id":14843149,"avatar_url":"https://avatars.githubusercontent.com/u/14843149?v=3","gravatar_id":"","url":"https://api.github.com/users/Teremiare","html_url":"https://github.com/Teremiare","followers_url":"https://api.github.com/users/Teremiare/followers","following_url":"https://api.github.com/users/Teremiare/following{/other_user}","gists_url":"https://api.github.com/users/Teremiare/gists{/gist_id}","starred_url":"https://api.github.com/users/Teremiare/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Teremiare/subscriptions","organizations_url":"https://api.github.com/users/Teremiare/orgs","repos_url":"https://api.github.com/users/Teremiare/repos","events_url":"https://api.github.com/users/Teremiare/events{/privacy}","received_events_url":"https://api.github.com/users/Teremiare/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Teremiare/Pokemon-Showdown-Client","description":"The client for Pokémon Showdown","fork":true,"url":"https://api.github.com/repos/Teremiare/Pokemon-Showdown-Client","forks_url":"https://api.github.com/repos/Teremiare/Pokemon-Showdown-Client/forks","keys_url":"https://api.github.com/repos/Teremiare/Pokemon-Showdown-Client/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Teremiare/Pokemon-Showdown-Client/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Teremiare/Pokemon-Showdown-Client/teams","hooks_url":"https://api.github.com/repos/Teremiare/Pokemon-Showdown-Client/hooks","issue_events_url":"https://api.github.com/repos/Teremiare/Pokemon-Showdown-Client/issues/events{/number}","events_url":"https://api.github.com/repos/Teremiare/Pokemon-Showdown-Client/events","assignees_url":"https://api.github.com/repos/Teremiare/Pokemon-Showdown-Client/assignees{/user}","branches_url":"https://api.github.com/repos/Teremiare/Pokemon-Showdown-Client/branches{/branch}","tags_url":"https://api.github.com/repos/Teremiare/Pokemon-Showdown-Client/tags","blobs_url":"https://api.github.com/repos/Teremiare/Pokemon-Showdown-Client/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Teremiare/Pokemon-Showdown-Client/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Teremiare/Pokemon-Showdown-Client/git/refs{/sha}","trees_url":"https://api.github.com/repos/Teremiare/Pokemon-Showdown-Client/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Teremiare/Pokemon-Showdown-Client/statuses/{sha}","languages_url":"https://api.github.com/repos/Teremiare/Pokemon-Showdown-Client/languages","stargazers_url":"https://api.github.com/repos/Teremiare/Pokemon-Showdown-Client/stargazers","contributors_url":"https://api.github.com/repos/Teremiare/Pokemon-Showdown-Client/contributors","subscribers_url":"https://api.github.com/repos/Teremiare/Pokemon-Showdown-Client/subscribers","subscription_url":"https://api.github.com/repos/Teremiare/Pokemon-Showdown-Client/subscription","commits_url":"https://api.github.com/repos/Teremiare/Pokemon-Showdown-Client/commits{/sha}","git_commits_url":"https://api.github.com/repos/Teremiare/Pokemon-Showdown-Client/git/commits{/sha}","comments_url":"https://api.github.com/repos/Teremiare/Pokemon-Showdown-Client/comments{/number}","issue_comment_url":"https://api.github.com/repos/Teremiare/Pokemon-Showdown-Client/issues/comments{/number}","contents_url":"https://api.github.com/repos/Teremiare/Pokemon-Showdown-Client/contents/{+path}","compare_url":"https://api.github.com/repos/Teremiare/Pokemon-Showdown-Client/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Teremiare/Pokemon-Showdown-Client/merges","archive_url":"https://api.github.com/repos/Teremiare/Pokemon-Showdown-Client/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Teremiare/Pokemon-Showdown-Client/downloads","issues_url":"https://api.github.com/repos/Teremiare/Pokemon-Showdown-Client/issues{/number}","pulls_url":"https://api.github.com/repos/Teremiare/Pokemon-Showdown-Client/pulls{/number}","milestones_url":"https://api.github.com/repos/Teremiare/Pokemon-Showdown-Client/milestones{/number}","notifications_url":"https://api.github.com/repos/Teremiare/Pokemon-Showdown-Client/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Teremiare/Pokemon-Showdown-Client/labels{/name}","releases_url":"https://api.github.com/repos/Teremiare/Pokemon-Showdown-Client/releases{/id}","deployments_url":"https://api.github.com/repos/Teremiare/Pokemon-Showdown-Client/deployments","created_at":"2015-12-22T17:49:12Z","updated_at":"2016-01-20T11:40:58Z","pushed_at":"2016-02-05T21:25:23Z","git_url":"git://github.com/Teremiare/Pokemon-Showdown-Client.git","ssh_url":"git@github.com:Teremiare/Pokemon-Showdown-Client.git","clone_url":"https://github.com/Teremiare/Pokemon-Showdown-Client.git","svn_url":"https://github.com/Teremiare/Pokemon-Showdown-Client","homepage":"http://pokemonshowdown.com","size":28177,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"337132bbd026187ec7680baa9cfa66ab9eed212e","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":7786818,"name":"Pokemon-Showdown-Client","full_name":"Zarel/Pokemon-Showdown-Client","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-Client","description":"The client for Pokémon Showdown","fork":false,"url":"https://api.github.com/repos/Zarel/Pokemon-Showdown-Client","forks_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown-Client/forks","keys_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown-Client/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown-Client/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown-Client/teams","hooks_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown-Client/hooks","issue_events_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown-Client/issues/events{/number}","events_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown-Client/events","assignees_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown-Client/assignees{/user}","branches_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown-Client/branches{/branch}","tags_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown-Client/tags","blobs_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown-Client/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown-Client/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown-Client/git/refs{/sha}","trees_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown-Client/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown-Client/statuses/{sha}","languages_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown-Client/languages","stargazers_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown-Client/stargazers","contributors_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown-Client/contributors","subscribers_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown-Client/subscribers","subscription_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown-Client/subscription","commits_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown-Client/commits{/sha}","git_commits_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown-Client/git/commits{/sha}","comments_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown-Client/comments{/number}","issue_comment_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown-Client/issues/comments{/number}","contents_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown-Client/contents/{+path}","compare_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown-Client/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown-Client/merges","archive_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown-Client/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown-Client/downloads","issues_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown-Client/issues{/number}","pulls_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown-Client/pulls{/number}","milestones_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown-Client/milestones{/number}","notifications_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown-Client/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown-Client/labels{/name}","releases_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown-Client/releases{/id}","deployments_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown-Client/deployments","created_at":"2013-01-24T00:09:53Z","updated_at":"2016-02-01T22:13:02Z","pushed_at":"2016-02-05T22:12:42Z","git_url":"git://github.com/Zarel/Pokemon-Showdown-Client.git","ssh_url":"git@github.com:Zarel/Pokemon-Showdown-Client.git","clone_url":"https://github.com/Zarel/Pokemon-Showdown-Client.git","svn_url":"https://github.com/Zarel/Pokemon-Showdown-Client","homepage":"http://pokemonshowdown.com","size":32429,"stargazers_count":105,"watchers_count":105,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":186,"mirror_url":null,"open_issues_count":25,"forks":186,"open_issues":25,"watchers":105,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Zarel/Pokemon-Showdown-Client/pulls/636"},"html":{"href":"https://github.com/Zarel/Pokemon-Showdown-Client/pull/636"},"issue":{"href":"https://api.github.com/repos/Zarel/Pokemon-Showdown-Client/issues/636"},"comments":{"href":"https://api.github.com/repos/Zarel/Pokemon-Showdown-Client/issues/636/comments"},"review_comments":{"href":"https://api.github.com/repos/Zarel/Pokemon-Showdown-Client/pulls/636/comments"},"review_comment":{"href":"https://api.github.com/repos/Zarel/Pokemon-Showdown-Client/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Zarel/Pokemon-Showdown-Client/pulls/636/commits"},"statuses":{"href":"https://api.github.com/repos/Zarel/Pokemon-Showdown-Client/statuses/4c30c24a7ecf6f4353240f385d8b87b486869446"}}}}