{"action":"created","comment":{"url":"https://api.github.com/repos/dotdoom/ejabberd/pulls/comments/28679785","id":28679785,"diff_hunk":"@@ -1531,7 +1531,17 @@ is_visitor(Jid, StateData) ->\n \n is_moderator(Jid, StateData) ->\n     get_role(Jid, StateData) =:= moderator.\n-\n+is_participant(Jid, StateData) ->\n+    FAffiliation = get_affiliation(Jid, StateData),\n+    FRole = get_role(Jid, StateData),\n+    case (FRole /= moderator) orelse\n+\t(FAffiliation == participant) orelse","path":"src/mod_muc/mod_muc_room.erl","position":45,"original_position":45,"commit_id":"b0c66cd2d083c1adf93604731497a8a05d08ccb5","original_commit_id":"b0c66cd2d083c1adf93604731497a8a05d08ccb5","user":{"login":"dotdoom","id":561122,"avatar_url":"https://avatars.githubusercontent.com/u/561122?v=3","gravatar_id":"","url":"https://api.github.com/users/dotdoom","html_url":"https://github.com/dotdoom","followers_url":"https://api.github.com/users/dotdoom/followers","following_url":"https://api.github.com/users/dotdoom/following{/other_user}","gists_url":"https://api.github.com/users/dotdoom/gists{/gist_id}","starred_url":"https://api.github.com/users/dotdoom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dotdoom/subscriptions","organizations_url":"https://api.github.com/users/dotdoom/orgs","repos_url":"https://api.github.com/users/dotdoom/repos","events_url":"https://api.github.com/users/dotdoom/events{/privacy}","received_events_url":"https://api.github.com/users/dotdoom/received_events","type":"User","site_admin":false},"body":"See XEP-0045: http://xmpp.org/extensions/xep-0045.html#associations\r\n\r\nRole := { none | visitor | participant | moderator }\r\nAffiliation := { outcast | none | member | admin | owner }\r\n\r\nFAffiliation may never be \"participant\" or \"visitor\".","created_at":"2015-04-20T10:59:42Z","updated_at":"2015-04-20T10:59:42Z","html_url":"https://github.com/dotdoom/ejabberd/pull/1#discussion_r28679785","pull_request_url":"https://api.github.com/repos/dotdoom/ejabberd/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/dotdoom/ejabberd/pulls/comments/28679785"},"html":{"href":"https://github.com/dotdoom/ejabberd/pull/1#discussion_r28679785"},"pull_request":{"href":"https://api.github.com/repos/dotdoom/ejabberd/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/dotdoom/ejabberd/pulls/1","id":33607872,"html_url":"https://github.com/dotdoom/ejabberd/pull/1","diff_url":"https://github.com/dotdoom/ejabberd/pull/1.diff","patch_url":"https://github.com/dotdoom/ejabberd/pull/1.patch","issue_url":"https://api.github.com/repos/dotdoom/ejabberd/issues/1","number":1,"state":"open","locked":false,"title":"منع المشترك من تغيير لقبه ومعاملته معاملة الزائر","user":{"login":"egproo","id":3978326,"avatar_url":"https://avatars.githubusercontent.com/u/3978326?v=3","gravatar_id":"","url":"https://api.github.com/users/egproo","html_url":"https://github.com/egproo","followers_url":"https://api.github.com/users/egproo/followers","following_url":"https://api.github.com/users/egproo/following{/other_user}","gists_url":"https://api.github.com/users/egproo/gists{/gist_id}","starred_url":"https://api.github.com/users/egproo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/egproo/subscriptions","organizations_url":"https://api.github.com/users/egproo/orgs","repos_url":"https://api.github.com/users/egproo/repos","events_url":"https://api.github.com/users/egproo/events{/privacy}","received_events_url":"https://api.github.com/users/egproo/received_events","type":"User","site_admin":false},"body":"معاملة المشترك معاملة الزائر لمنع بوتات الفلود التي تغير اللقب بسرعة","created_at":"2015-04-18T20:02:36Z","updated_at":"2015-04-20T10:59:42Z","closed_at":null,"merged_at":null,"merge_commit_sha":"cf1348605608c076078e4fc30115ba4b0283fa87","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/dotdoom/ejabberd/pulls/1/commits","review_comments_url":"https://api.github.com/repos/dotdoom/ejabberd/pulls/1/comments","review_comment_url":"https://api.github.com/repos/dotdoom/ejabberd/pulls/comments{/number}","comments_url":"https://api.github.com/repos/dotdoom/ejabberd/issues/1/comments","statuses_url":"https://api.github.com/repos/dotdoom/ejabberd/statuses/b0c66cd2d083c1adf93604731497a8a05d08ccb5","head":{"label":"egproo:2.1.x","ref":"2.1.x","sha":"b0c66cd2d083c1adf93604731497a8a05d08ccb5","user":{"login":"egproo","id":3978326,"avatar_url":"https://avatars.githubusercontent.com/u/3978326?v=3","gravatar_id":"","url":"https://api.github.com/users/egproo","html_url":"https://github.com/egproo","followers_url":"https://api.github.com/users/egproo/followers","following_url":"https://api.github.com/users/egproo/following{/other_user}","gists_url":"https://api.github.com/users/egproo/gists{/gist_id}","starred_url":"https://api.github.com/users/egproo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/egproo/subscriptions","organizations_url":"https://api.github.com/users/egproo/orgs","repos_url":"https://api.github.com/users/egproo/repos","events_url":"https://api.github.com/users/egproo/events{/privacy}","received_events_url":"https://api.github.com/users/egproo/received_events","type":"User","site_admin":false},"repo":{"id":34178267,"name":"ejabberd","full_name":"egproo/ejabberd","owner":{"login":"egproo","id":3978326,"avatar_url":"https://avatars.githubusercontent.com/u/3978326?v=3","gravatar_id":"","url":"https://api.github.com/users/egproo","html_url":"https://github.com/egproo","followers_url":"https://api.github.com/users/egproo/followers","following_url":"https://api.github.com/users/egproo/following{/other_user}","gists_url":"https://api.github.com/users/egproo/gists{/gist_id}","starred_url":"https://api.github.com/users/egproo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/egproo/subscriptions","organizations_url":"https://api.github.com/users/egproo/orgs","repos_url":"https://api.github.com/users/egproo/repos","events_url":"https://api.github.com/users/egproo/events{/privacy}","received_events_url":"https://api.github.com/users/egproo/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/egproo/ejabberd","description":"Robust and scalable Jabber / XMPP Instant Messaging platform","fork":true,"url":"https://api.github.com/repos/egproo/ejabberd","forks_url":"https://api.github.com/repos/egproo/ejabberd/forks","keys_url":"https://api.github.com/repos/egproo/ejabberd/keys{/key_id}","collaborators_url":"https://api.github.com/repos/egproo/ejabberd/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/egproo/ejabberd/teams","hooks_url":"https://api.github.com/repos/egproo/ejabberd/hooks","issue_events_url":"https://api.github.com/repos/egproo/ejabberd/issues/events{/number}","events_url":"https://api.github.com/repos/egproo/ejabberd/events","assignees_url":"https://api.github.com/repos/egproo/ejabberd/assignees{/user}","branches_url":"https://api.github.com/repos/egproo/ejabberd/branches{/branch}","tags_url":"https://api.github.com/repos/egproo/ejabberd/tags","blobs_url":"https://api.github.com/repos/egproo/ejabberd/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/egproo/ejabberd/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/egproo/ejabberd/git/refs{/sha}","trees_url":"https://api.github.com/repos/egproo/ejabberd/git/trees{/sha}","statuses_url":"https://api.github.com/repos/egproo/ejabberd/statuses/{sha}","languages_url":"https://api.github.com/repos/egproo/ejabberd/languages","stargazers_url":"https://api.github.com/repos/egproo/ejabberd/stargazers","contributors_url":"https://api.github.com/repos/egproo/ejabberd/contributors","subscribers_url":"https://api.github.com/repos/egproo/ejabberd/subscribers","subscription_url":"https://api.github.com/repos/egproo/ejabberd/subscription","commits_url":"https://api.github.com/repos/egproo/ejabberd/commits{/sha}","git_commits_url":"https://api.github.com/repos/egproo/ejabberd/git/commits{/sha}","comments_url":"https://api.github.com/repos/egproo/ejabberd/comments{/number}","issue_comment_url":"https://api.github.com/repos/egproo/ejabberd/issues/comments{/number}","contents_url":"https://api.github.com/repos/egproo/ejabberd/contents/{+path}","compare_url":"https://api.github.com/repos/egproo/ejabberd/compare/{base}...{head}","merges_url":"https://api.github.com/repos/egproo/ejabberd/merges","archive_url":"https://api.github.com/repos/egproo/ejabberd/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/egproo/ejabberd/downloads","issues_url":"https://api.github.com/repos/egproo/ejabberd/issues{/number}","pulls_url":"https://api.github.com/repos/egproo/ejabberd/pulls{/number}","milestones_url":"https://api.github.com/repos/egproo/ejabberd/milestones{/number}","notifications_url":"https://api.github.com/repos/egproo/ejabberd/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/egproo/ejabberd/labels{/name}","releases_url":"https://api.github.com/repos/egproo/ejabberd/releases{/id}","created_at":"2015-04-18T18:49:10Z","updated_at":"2015-04-18T19:28:21Z","pushed_at":"2015-04-18T19:28:21Z","git_url":"git://github.com/egproo/ejabberd.git","ssh_url":"git@github.com:egproo/ejabberd.git","clone_url":"https://github.com/egproo/ejabberd.git","svn_url":"https://github.com/egproo/ejabberd","homepage":"http://www.process-one.net/en/ejabberd/","size":11476,"stargazers_count":0,"watchers_count":0,"language":"Erlang","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":"2.1.x"}},"base":{"label":"dotdoom:2.1.x","ref":"2.1.x","sha":"ff7bc19d9de470a334749c96b960d408e175a9eb","user":{"login":"dotdoom","id":561122,"avatar_url":"https://avatars.githubusercontent.com/u/561122?v=3","gravatar_id":"","url":"https://api.github.com/users/dotdoom","html_url":"https://github.com/dotdoom","followers_url":"https://api.github.com/users/dotdoom/followers","following_url":"https://api.github.com/users/dotdoom/following{/other_user}","gists_url":"https://api.github.com/users/dotdoom/gists{/gist_id}","starred_url":"https://api.github.com/users/dotdoom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dotdoom/subscriptions","organizations_url":"https://api.github.com/users/dotdoom/orgs","repos_url":"https://api.github.com/users/dotdoom/repos","events_url":"https://api.github.com/users/dotdoom/events{/privacy}","received_events_url":"https://api.github.com/users/dotdoom/received_events","type":"User","site_admin":false},"repo":{"id":5089131,"name":"ejabberd","full_name":"dotdoom/ejabberd","owner":{"login":"dotdoom","id":561122,"avatar_url":"https://avatars.githubusercontent.com/u/561122?v=3","gravatar_id":"","url":"https://api.github.com/users/dotdoom","html_url":"https://github.com/dotdoom","followers_url":"https://api.github.com/users/dotdoom/followers","following_url":"https://api.github.com/users/dotdoom/following{/other_user}","gists_url":"https://api.github.com/users/dotdoom/gists{/gist_id}","starred_url":"https://api.github.com/users/dotdoom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dotdoom/subscriptions","organizations_url":"https://api.github.com/users/dotdoom/orgs","repos_url":"https://api.github.com/users/dotdoom/repos","events_url":"https://api.github.com/users/dotdoom/events{/privacy}","received_events_url":"https://api.github.com/users/dotdoom/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dotdoom/ejabberd","description":"Robust and scalable Jabber / XMPP Instant Messaging platform","fork":true,"url":"https://api.github.com/repos/dotdoom/ejabberd","forks_url":"https://api.github.com/repos/dotdoom/ejabberd/forks","keys_url":"https://api.github.com/repos/dotdoom/ejabberd/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dotdoom/ejabberd/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dotdoom/ejabberd/teams","hooks_url":"https://api.github.com/repos/dotdoom/ejabberd/hooks","issue_events_url":"https://api.github.com/repos/dotdoom/ejabberd/issues/events{/number}","events_url":"https://api.github.com/repos/dotdoom/ejabberd/events","assignees_url":"https://api.github.com/repos/dotdoom/ejabberd/assignees{/user}","branches_url":"https://api.github.com/repos/dotdoom/ejabberd/branches{/branch}","tags_url":"https://api.github.com/repos/dotdoom/ejabberd/tags","blobs_url":"https://api.github.com/repos/dotdoom/ejabberd/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dotdoom/ejabberd/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dotdoom/ejabberd/git/refs{/sha}","trees_url":"https://api.github.com/repos/dotdoom/ejabberd/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dotdoom/ejabberd/statuses/{sha}","languages_url":"https://api.github.com/repos/dotdoom/ejabberd/languages","stargazers_url":"https://api.github.com/repos/dotdoom/ejabberd/stargazers","contributors_url":"https://api.github.com/repos/dotdoom/ejabberd/contributors","subscribers_url":"https://api.github.com/repos/dotdoom/ejabberd/subscribers","subscription_url":"https://api.github.com/repos/dotdoom/ejabberd/subscription","commits_url":"https://api.github.com/repos/dotdoom/ejabberd/commits{/sha}","git_commits_url":"https://api.github.com/repos/dotdoom/ejabberd/git/commits{/sha}","comments_url":"https://api.github.com/repos/dotdoom/ejabberd/comments{/number}","issue_comment_url":"https://api.github.com/repos/dotdoom/ejabberd/issues/comments{/number}","contents_url":"https://api.github.com/repos/dotdoom/ejabberd/contents/{+path}","compare_url":"https://api.github.com/repos/dotdoom/ejabberd/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dotdoom/ejabberd/merges","archive_url":"https://api.github.com/repos/dotdoom/ejabberd/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dotdoom/ejabberd/downloads","issues_url":"https://api.github.com/repos/dotdoom/ejabberd/issues{/number}","pulls_url":"https://api.github.com/repos/dotdoom/ejabberd/pulls{/number}","milestones_url":"https://api.github.com/repos/dotdoom/ejabberd/milestones{/number}","notifications_url":"https://api.github.com/repos/dotdoom/ejabberd/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dotdoom/ejabberd/labels{/name}","releases_url":"https://api.github.com/repos/dotdoom/ejabberd/releases{/id}","created_at":"2012-07-17T22:46:29Z","updated_at":"2015-04-01T12:50:48Z","pushed_at":"2015-04-18T20:02:36Z","git_url":"git://github.com/dotdoom/ejabberd.git","ssh_url":"git@github.com:dotdoom/ejabberd.git","clone_url":"https://github.com/dotdoom/ejabberd.git","svn_url":"https://github.com/dotdoom/ejabberd","homepage":"http://www.process-one.net/en/ejabberd/","size":11476,"stargazers_count":3,"watchers_count":3,"language":"Erlang","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":1,"forks":2,"open_issues":1,"watchers":3,"default_branch":"2.1.x"}},"_links":{"self":{"href":"https://api.github.com/repos/dotdoom/ejabberd/pulls/1"},"html":{"href":"https://github.com/dotdoom/ejabberd/pull/1"},"issue":{"href":"https://api.github.com/repos/dotdoom/ejabberd/issues/1"},"comments":{"href":"https://api.github.com/repos/dotdoom/ejabberd/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/dotdoom/ejabberd/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/dotdoom/ejabberd/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/dotdoom/ejabberd/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/dotdoom/ejabberd/statuses/b0c66cd2d083c1adf93604731497a8a05d08ccb5"}}}}