{"action":"created","comment":{"url":"https://api.github.com/repos/Cockatrice/Cockatrice/pulls/comments/39896652","id":39896652,"diff_hunk":"@@ -56,6 +56,11 @@ requireclientid=false\n ; attempting to log in.  Example: \"client_id,client_ver\"\n requiredfeatures=\"\"\n \n+; You can define custom warnings that users are sent when the moderation staff uses the right client warn user\n+; menu option.  This list is comma seperated that each item will appear in the drop down list for staff members\n+; to choose from.  Example: \"Flaming,Foul Language\"\n+officialwarnings=\"\"","path":"servatrice/servatrice.ini.example","position":7,"original_position":7,"commit_id":"72b70ccf58857946744b20d0becc2b8a21f312d7","original_commit_id":"72b70ccf58857946744b20d0becc2b8a21f312d7","user":{"login":"ZeldaZach","id":7460172,"avatar_url":"https://avatars.githubusercontent.com/u/7460172?v=3","gravatar_id":"","url":"https://api.github.com/users/ZeldaZach","html_url":"https://github.com/ZeldaZach","followers_url":"https://api.github.com/users/ZeldaZach/followers","following_url":"https://api.github.com/users/ZeldaZach/following{/other_user}","gists_url":"https://api.github.com/users/ZeldaZach/gists{/gist_id}","starred_url":"https://api.github.com/users/ZeldaZach/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ZeldaZach/subscriptions","organizations_url":"https://api.github.com/users/ZeldaZach/orgs","repos_url":"https://api.github.com/users/ZeldaZach/repos","events_url":"https://api.github.com/users/ZeldaZach/events{/privacy}","received_events_url":"https://api.github.com/users/ZeldaZach/received_events","type":"User","site_admin":false},"body":"Maybe we can include some defaults?","created_at":"2015-09-18T20:21:13Z","updated_at":"2015-09-18T20:21:13Z","html_url":"https://github.com/Cockatrice/Cockatrice/pull/1522#discussion_r39896652","pull_request_url":"https://api.github.com/repos/Cockatrice/Cockatrice/pulls/1522","_links":{"self":{"href":"https://api.github.com/repos/Cockatrice/Cockatrice/pulls/comments/39896652"},"html":{"href":"https://github.com/Cockatrice/Cockatrice/pull/1522#discussion_r39896652"},"pull_request":{"href":"https://api.github.com/repos/Cockatrice/Cockatrice/pulls/1522"}}},"pull_request":{"url":"https://api.github.com/repos/Cockatrice/Cockatrice/pulls/1522","id":45130333,"html_url":"https://github.com/Cockatrice/Cockatrice/pull/1522","diff_url":"https://github.com/Cockatrice/Cockatrice/pull/1522.diff","patch_url":"https://github.com/Cockatrice/Cockatrice/pull/1522.patch","issue_url":"https://api.github.com/repos/Cockatrice/Cockatrice/issues/1522","number":1522,"state":"open","locked":false,"title":"Added official warning messages moderators can use to inform users","user":{"login":"woogerboy21","id":1361287,"avatar_url":"https://avatars.githubusercontent.com/u/1361287?v=3","gravatar_id":"","url":"https://api.github.com/users/woogerboy21","html_url":"https://github.com/woogerboy21","followers_url":"https://api.github.com/users/woogerboy21/followers","following_url":"https://api.github.com/users/woogerboy21/following{/other_user}","gists_url":"https://api.github.com/users/woogerboy21/gists{/gist_id}","starred_url":"https://api.github.com/users/woogerboy21/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/woogerboy21/subscriptions","organizations_url":"https://api.github.com/users/woogerboy21/orgs","repos_url":"https://api.github.com/users/woogerboy21/repos","events_url":"https://api.github.com/users/woogerboy21/events{/privacy}","received_events_url":"https://api.github.com/users/woogerboy21/received_events","type":"User","site_admin":false},"body":"Fix #175\r\n\r\nSo here is a PR to add official warning messages that a moderator/admin can send to a user warning them of misconduct. The list of warnings are configurable by the server operator using the servatrice.ini\r\n\r\nHow it works - \r\nWhen the moderator wants to warn a user they can right click the users name in the userlist and choose warn user. A command is sent to the server that first collects the users information and once collected the couple of fields that is needed are extracted. Then a second command is sent to the server requesting the list of warnings that the operator has defined in the servers ini file. Once that is collected the warning dialog is presented listing the warnings that the operator has available on the server and allows the moderator to select the desired warning and issue it to the end user.\r\n\r\nOnce issued, the warning is then stored in the warnings table of the database and once successfully stored the warning event is sent to the user for the warning dialog to be shown. An event is also sent to all online moderator/admins that display a private message by the server to inform the online staff which user has been warned and for what reason.\r\n\r\nA right click menu option to get the users warn history has also been added for moderators to be able to view a users warn history and determine if the user needs a harsher punishment.\r\n\r\n\r\nPlease let me know if there is any changes that need made to the list.\r\nPlease review heavily and make suggestions on changes. \r\n\r\n![image](https://cloud.githubusercontent.com/assets/1361287/9896465/83e5dc44-5c0a-11e5-9525-92a6d5b0c322.png)\r\n\r\n![image](https://cloud.githubusercontent.com/assets/1361287/9896482/b8508ab0-5c0a-11e5-89fc-9985a595d013.png)\r\n","created_at":"2015-09-16T04:31:19Z","updated_at":"2015-09-18T20:21:13Z","closed_at":null,"merged_at":null,"merge_commit_sha":"746a0c326e19282ca3f0db97dd0ea702d59136d6","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Cockatrice/Cockatrice/pulls/1522/commits","review_comments_url":"https://api.github.com/repos/Cockatrice/Cockatrice/pulls/1522/comments","review_comment_url":"https://api.github.com/repos/Cockatrice/Cockatrice/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Cockatrice/Cockatrice/issues/1522/comments","statuses_url":"https://api.github.com/repos/Cockatrice/Cockatrice/statuses/72b70ccf58857946744b20d0becc2b8a21f312d7","head":{"label":"woogerboy21:offical_warnings","ref":"offical_warnings","sha":"72b70ccf58857946744b20d0becc2b8a21f312d7","user":{"login":"woogerboy21","id":1361287,"avatar_url":"https://avatars.githubusercontent.com/u/1361287?v=3","gravatar_id":"","url":"https://api.github.com/users/woogerboy21","html_url":"https://github.com/woogerboy21","followers_url":"https://api.github.com/users/woogerboy21/followers","following_url":"https://api.github.com/users/woogerboy21/following{/other_user}","gists_url":"https://api.github.com/users/woogerboy21/gists{/gist_id}","starred_url":"https://api.github.com/users/woogerboy21/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/woogerboy21/subscriptions","organizations_url":"https://api.github.com/users/woogerboy21/orgs","repos_url":"https://api.github.com/users/woogerboy21/repos","events_url":"https://api.github.com/users/woogerboy21/events{/privacy}","received_events_url":"https://api.github.com/users/woogerboy21/received_events","type":"User","site_admin":false},"repo":{"id":21113338,"name":"Cockatrice","full_name":"woogerboy21/Cockatrice","owner":{"login":"woogerboy21","id":1361287,"avatar_url":"https://avatars.githubusercontent.com/u/1361287?v=3","gravatar_id":"","url":"https://api.github.com/users/woogerboy21","html_url":"https://github.com/woogerboy21","followers_url":"https://api.github.com/users/woogerboy21/followers","following_url":"https://api.github.com/users/woogerboy21/following{/other_user}","gists_url":"https://api.github.com/users/woogerboy21/gists{/gist_id}","starred_url":"https://api.github.com/users/woogerboy21/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/woogerboy21/subscriptions","organizations_url":"https://api.github.com/users/woogerboy21/orgs","repos_url":"https://api.github.com/users/woogerboy21/repos","events_url":"https://api.github.com/users/woogerboy21/events{/privacy}","received_events_url":"https://api.github.com/users/woogerboy21/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/woogerboy21/Cockatrice","description":"A cross-platform virtual tabletop for multiplayer card games","fork":true,"url":"https://api.github.com/repos/woogerboy21/Cockatrice","forks_url":"https://api.github.com/repos/woogerboy21/Cockatrice/forks","keys_url":"https://api.github.com/repos/woogerboy21/Cockatrice/keys{/key_id}","collaborators_url":"https://api.github.com/repos/woogerboy21/Cockatrice/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/woogerboy21/Cockatrice/teams","hooks_url":"https://api.github.com/repos/woogerboy21/Cockatrice/hooks","issue_events_url":"https://api.github.com/repos/woogerboy21/Cockatrice/issues/events{/number}","events_url":"https://api.github.com/repos/woogerboy21/Cockatrice/events","assignees_url":"https://api.github.com/repos/woogerboy21/Cockatrice/assignees{/user}","branches_url":"https://api.github.com/repos/woogerboy21/Cockatrice/branches{/branch}","tags_url":"https://api.github.com/repos/woogerboy21/Cockatrice/tags","blobs_url":"https://api.github.com/repos/woogerboy21/Cockatrice/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/woogerboy21/Cockatrice/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/woogerboy21/Cockatrice/git/refs{/sha}","trees_url":"https://api.github.com/repos/woogerboy21/Cockatrice/git/trees{/sha}","statuses_url":"https://api.github.com/repos/woogerboy21/Cockatrice/statuses/{sha}","languages_url":"https://api.github.com/repos/woogerboy21/Cockatrice/languages","stargazers_url":"https://api.github.com/repos/woogerboy21/Cockatrice/stargazers","contributors_url":"https://api.github.com/repos/woogerboy21/Cockatrice/contributors","subscribers_url":"https://api.github.com/repos/woogerboy21/Cockatrice/subscribers","subscription_url":"https://api.github.com/repos/woogerboy21/Cockatrice/subscription","commits_url":"https://api.github.com/repos/woogerboy21/Cockatrice/commits{/sha}","git_commits_url":"https://api.github.com/repos/woogerboy21/Cockatrice/git/commits{/sha}","comments_url":"https://api.github.com/repos/woogerboy21/Cockatrice/comments{/number}","issue_comment_url":"https://api.github.com/repos/woogerboy21/Cockatrice/issues/comments{/number}","contents_url":"https://api.github.com/repos/woogerboy21/Cockatrice/contents/{+path}","compare_url":"https://api.github.com/repos/woogerboy21/Cockatrice/compare/{base}...{head}","merges_url":"https://api.github.com/repos/woogerboy21/Cockatrice/merges","archive_url":"https://api.github.com/repos/woogerboy21/Cockatrice/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/woogerboy21/Cockatrice/downloads","issues_url":"https://api.github.com/repos/woogerboy21/Cockatrice/issues{/number}","pulls_url":"https://api.github.com/repos/woogerboy21/Cockatrice/pulls{/number}","milestones_url":"https://api.github.com/repos/woogerboy21/Cockatrice/milestones{/number}","notifications_url":"https://api.github.com/repos/woogerboy21/Cockatrice/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/woogerboy21/Cockatrice/labels{/name}","releases_url":"https://api.github.com/repos/woogerboy21/Cockatrice/releases{/id}","created_at":"2014-06-23T03:52:32Z","updated_at":"2015-03-06T17:12:51Z","pushed_at":"2015-09-18T20:02:10Z","git_url":"git://github.com/woogerboy21/Cockatrice.git","ssh_url":"git@github.com:woogerboy21/Cockatrice.git","clone_url":"https://github.com/woogerboy21/Cockatrice.git","svn_url":"https://github.com/woogerboy21/Cockatrice","homepage":"","size":32471,"stargazers_count":0,"watchers_count":0,"language":"C++","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":"Cockatrice:master","ref":"master","sha":"1409b97490c5a9639757bcfd85a7a76de4cc181b","user":{"login":"Cockatrice","id":9746249,"avatar_url":"https://avatars.githubusercontent.com/u/9746249?v=3","gravatar_id":"","url":"https://api.github.com/users/Cockatrice","html_url":"https://github.com/Cockatrice","followers_url":"https://api.github.com/users/Cockatrice/followers","following_url":"https://api.github.com/users/Cockatrice/following{/other_user}","gists_url":"https://api.github.com/users/Cockatrice/gists{/gist_id}","starred_url":"https://api.github.com/users/Cockatrice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Cockatrice/subscriptions","organizations_url":"https://api.github.com/users/Cockatrice/orgs","repos_url":"https://api.github.com/users/Cockatrice/repos","events_url":"https://api.github.com/users/Cockatrice/events{/privacy}","received_events_url":"https://api.github.com/users/Cockatrice/received_events","type":"Organization","site_admin":false},"repo":{"id":2907031,"name":"Cockatrice","full_name":"Cockatrice/Cockatrice","owner":{"login":"Cockatrice","id":9746249,"avatar_url":"https://avatars.githubusercontent.com/u/9746249?v=3","gravatar_id":"","url":"https://api.github.com/users/Cockatrice","html_url":"https://github.com/Cockatrice","followers_url":"https://api.github.com/users/Cockatrice/followers","following_url":"https://api.github.com/users/Cockatrice/following{/other_user}","gists_url":"https://api.github.com/users/Cockatrice/gists{/gist_id}","starred_url":"https://api.github.com/users/Cockatrice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Cockatrice/subscriptions","organizations_url":"https://api.github.com/users/Cockatrice/orgs","repos_url":"https://api.github.com/users/Cockatrice/repos","events_url":"https://api.github.com/users/Cockatrice/events{/privacy}","received_events_url":"https://api.github.com/users/Cockatrice/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Cockatrice/Cockatrice","description":"A cross-platform virtual tabletop for multiplayer card games","fork":false,"url":"https://api.github.com/repos/Cockatrice/Cockatrice","forks_url":"https://api.github.com/repos/Cockatrice/Cockatrice/forks","keys_url":"https://api.github.com/repos/Cockatrice/Cockatrice/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Cockatrice/Cockatrice/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Cockatrice/Cockatrice/teams","hooks_url":"https://api.github.com/repos/Cockatrice/Cockatrice/hooks","issue_events_url":"https://api.github.com/repos/Cockatrice/Cockatrice/issues/events{/number}","events_url":"https://api.github.com/repos/Cockatrice/Cockatrice/events","assignees_url":"https://api.github.com/repos/Cockatrice/Cockatrice/assignees{/user}","branches_url":"https://api.github.com/repos/Cockatrice/Cockatrice/branches{/branch}","tags_url":"https://api.github.com/repos/Cockatrice/Cockatrice/tags","blobs_url":"https://api.github.com/repos/Cockatrice/Cockatrice/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Cockatrice/Cockatrice/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Cockatrice/Cockatrice/git/refs{/sha}","trees_url":"https://api.github.com/repos/Cockatrice/Cockatrice/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Cockatrice/Cockatrice/statuses/{sha}","languages_url":"https://api.github.com/repos/Cockatrice/Cockatrice/languages","stargazers_url":"https://api.github.com/repos/Cockatrice/Cockatrice/stargazers","contributors_url":"https://api.github.com/repos/Cockatrice/Cockatrice/contributors","subscribers_url":"https://api.github.com/repos/Cockatrice/Cockatrice/subscribers","subscription_url":"https://api.github.com/repos/Cockatrice/Cockatrice/subscription","commits_url":"https://api.github.com/repos/Cockatrice/Cockatrice/commits{/sha}","git_commits_url":"https://api.github.com/repos/Cockatrice/Cockatrice/git/commits{/sha}","comments_url":"https://api.github.com/repos/Cockatrice/Cockatrice/comments{/number}","issue_comment_url":"https://api.github.com/repos/Cockatrice/Cockatrice/issues/comments{/number}","contents_url":"https://api.github.com/repos/Cockatrice/Cockatrice/contents/{+path}","compare_url":"https://api.github.com/repos/Cockatrice/Cockatrice/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Cockatrice/Cockatrice/merges","archive_url":"https://api.github.com/repos/Cockatrice/Cockatrice/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Cockatrice/Cockatrice/downloads","issues_url":"https://api.github.com/repos/Cockatrice/Cockatrice/issues{/number}","pulls_url":"https://api.github.com/repos/Cockatrice/Cockatrice/pulls{/number}","milestones_url":"https://api.github.com/repos/Cockatrice/Cockatrice/milestones{/number}","notifications_url":"https://api.github.com/repos/Cockatrice/Cockatrice/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Cockatrice/Cockatrice/labels{/name}","releases_url":"https://api.github.com/repos/Cockatrice/Cockatrice/releases{/id}","created_at":"2011-12-03T20:58:09Z","updated_at":"2015-09-14T00:47:27Z","pushed_at":"2015-09-18T20:02:10Z","git_url":"git://github.com/Cockatrice/Cockatrice.git","ssh_url":"git@github.com:Cockatrice/Cockatrice.git","clone_url":"https://github.com/Cockatrice/Cockatrice.git","svn_url":"https://github.com/Cockatrice/Cockatrice","homepage":"","size":44122,"stargazers_count":314,"watchers_count":314,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":194,"mirror_url":null,"open_issues_count":228,"forks":194,"open_issues":228,"watchers":314,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Cockatrice/Cockatrice/pulls/1522"},"html":{"href":"https://github.com/Cockatrice/Cockatrice/pull/1522"},"issue":{"href":"https://api.github.com/repos/Cockatrice/Cockatrice/issues/1522"},"comments":{"href":"https://api.github.com/repos/Cockatrice/Cockatrice/issues/1522/comments"},"review_comments":{"href":"https://api.github.com/repos/Cockatrice/Cockatrice/pulls/1522/comments"},"review_comment":{"href":"https://api.github.com/repos/Cockatrice/Cockatrice/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Cockatrice/Cockatrice/pulls/1522/commits"},"statuses":{"href":"https://api.github.com/repos/Cockatrice/Cockatrice/statuses/72b70ccf58857946744b20d0becc2b8a21f312d7"}}}}