{"action":"created","comment":{"url":"https://api.github.com/repos/tgstation/-tg-station/pulls/comments/24717279","id":24717279,"diff_hunk":"@@ -0,0 +1,67 @@\n+/obj/item/device/megaphone\n+\tname = \"megaphone\"\n+\tdesc = \"A device used to project your voice. Loudly.\"\n+\ticon_state = \"megaphone\"\n+\titem_state = \"radio\"\n+\tw_class = 2\n+\tflags = FPRINT\n+\tsiemens_coefficient = 1\n+\n+\tvar/spamcheck = 0\n+\tvar/emagged = 0\n+\tvar/insults = 0\n+\tvar/list/insultmsg = list(\"FUCK EVERYONE!\", \"DEATH TO LIZARDS!\", \"ALL SECURITY TO SHOOT ME ON SIGHT!\", \"I HAVE A BOMB!\", \"CAPTAIN IS A COMDOM!\", \"FOR THE SYNDICATE!\", \"VIVA!\", \"HONK!\")\n+\n+/obj/item/device/megaphone/attack_self(mob/living/carbon/human/user as mob)\n+\tif(user.client)\n+\t\tif(user.client.prefs.muted & MUTE_IC)\n+\t\t\tsrc << \"<span class='warning'>You cannot speak in IC (muted).</span>\"\n+\t\t\treturn\n+\tif(!ishuman(user))\n+\t\tuser << \"<span class='warning'>You don't know how to use this!</span>\"\n+\t\treturn\n+\tif(ishuman(user) && (user.mind.miming)) //Humans get their muteness checked\n+\t\tuser << \"<span class='warning'>You find yourself unable to speak at all.</span>\"\n+\t\treturn\n+\tif(spamcheck)\n+\t\tuser << \"<span class='warning'>\\The [src] needs to recharge!</span>\"\n+\t\treturn\n+\n+\tvar/message = copytext(sanitize(input(user, \"Shout a message?\", \"Megaphone\", null)  as text),1,MAX_MESSAGE_LEN)\n+\tif(!message)\n+\t\treturn\n+\tmessage = capitalize(message)\n+\tif ((src.loc == user && usr.stat == 0))\n+\t\tif(emagged)\n+\t\t\tif(insults)\n+\t\t\t\tfor(var/mob/O in (viewers(user)))\n+\t\t\t\t\tO.show_message(\"<B>[user]</B> broadcasts, <FONT size=3>\\\"[pick(insultmsg)]\\\"</FONT>\",2) // 2 stands for hearable message","path":"code/game/objects/items/devices/megaphone.dm","position":38,"original_position":38,"commit_id":"c66327318d96cf73d16394d3d8eae92720f4882a","original_commit_id":"c66327318d96cf73d16394d3d8eae92720f4882a","user":{"login":"paprka","id":7247232,"avatar_url":"https://avatars.githubusercontent.com/u/7247232?v=3","gravatar_id":"","url":"https://api.github.com/users/paprka","html_url":"https://github.com/paprka","followers_url":"https://api.github.com/users/paprka/followers","following_url":"https://api.github.com/users/paprka/following{/other_user}","gists_url":"https://api.github.com/users/paprka/gists{/gist_id}","starred_url":"https://api.github.com/users/paprka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paprka/subscriptions","organizations_url":"https://api.github.com/users/paprka/orgs","repos_url":"https://api.github.com/users/paprka/repos","events_url":"https://api.github.com/users/paprka/events{/privacy}","received_events_url":"https://api.github.com/users/paprka/received_events","type":"User","site_admin":false},"body":"miauw's sarcastic messages make me want to cry, it's like he doesn't actually want me to change anything.","created_at":"2015-02-14T20:53:37Z","updated_at":"2015-02-14T20:53:37Z","html_url":"https://github.com/tgstation/-tg-station/pull/7716#discussion_r24717279","pull_request_url":"https://api.github.com/repos/tgstation/-tg-station/pulls/7716","_links":{"self":{"href":"https://api.github.com/repos/tgstation/-tg-station/pulls/comments/24717279"},"html":{"href":"https://github.com/tgstation/-tg-station/pull/7716#discussion_r24717279"},"pull_request":{"href":"https://api.github.com/repos/tgstation/-tg-station/pulls/7716"}}},"pull_request":{"url":"https://api.github.com/repos/tgstation/-tg-station/pulls/7716","id":29307207,"html_url":"https://github.com/tgstation/-tg-station/pull/7716","diff_url":"https://github.com/tgstation/-tg-station/pull/7716.diff","patch_url":"https://github.com/tgstation/-tg-station/pull/7716.patch","issue_url":"https://api.github.com/repos/tgstation/-tg-station/issues/7716","number":7716,"state":"open","locked":false,"title":"Adds megaphones","user":{"login":"paprka","id":7247232,"avatar_url":"https://avatars.githubusercontent.com/u/7247232?v=3","gravatar_id":"","url":"https://api.github.com/users/paprka","html_url":"https://github.com/paprka","followers_url":"https://api.github.com/users/paprka/followers","following_url":"https://api.github.com/users/paprka/following{/other_user}","gists_url":"https://api.github.com/users/paprka/gists{/gist_id}","starred_url":"https://api.github.com/users/paprka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paprka/subscriptions","organizations_url":"https://api.github.com/users/paprka/orgs","repos_url":"https://api.github.com/users/paprka/repos","events_url":"https://api.github.com/users/paprka/events{/privacy}","received_events_url":"https://api.github.com/users/paprka/received_events","type":"User","site_admin":false},"body":"Graciously ported from /vg/ and bay. Allows you to project your voice in big text so everyone knows that you're THE BOSS. Given to the HoP, HoS, and QM.\r\n\r\nI improved it a bit by making it play a microphone noise as well, taken from https://www.freesound.org/","created_at":"2015-02-13T23:08:47Z","updated_at":"2015-02-14T20:53:37Z","closed_at":null,"merged_at":null,"merge_commit_sha":"78acf7ca094d4045f24d825008539d2987c1fd1c","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/tgstation/-tg-station/pulls/7716/commits","review_comments_url":"https://api.github.com/repos/tgstation/-tg-station/pulls/7716/comments","review_comment_url":"https://api.github.com/repos/tgstation/-tg-station/pulls/comments/{number}","comments_url":"https://api.github.com/repos/tgstation/-tg-station/issues/7716/comments","statuses_url":"https://api.github.com/repos/tgstation/-tg-station/statuses/c66327318d96cf73d16394d3d8eae92720f4882a","head":{"label":"paprka:megaphoney","ref":"megaphoney","sha":"c66327318d96cf73d16394d3d8eae92720f4882a","user":{"login":"paprka","id":7247232,"avatar_url":"https://avatars.githubusercontent.com/u/7247232?v=3","gravatar_id":"","url":"https://api.github.com/users/paprka","html_url":"https://github.com/paprka","followers_url":"https://api.github.com/users/paprka/followers","following_url":"https://api.github.com/users/paprka/following{/other_user}","gists_url":"https://api.github.com/users/paprka/gists{/gist_id}","starred_url":"https://api.github.com/users/paprka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paprka/subscriptions","organizations_url":"https://api.github.com/users/paprka/orgs","repos_url":"https://api.github.com/users/paprka/repos","events_url":"https://api.github.com/users/paprka/events{/privacy}","received_events_url":"https://api.github.com/users/paprka/received_events","type":"User","site_admin":false},"repo":{"id":18625587,"name":"-tg-station","full_name":"paprka/-tg-station","owner":{"login":"paprka","id":7247232,"avatar_url":"https://avatars.githubusercontent.com/u/7247232?v=3","gravatar_id":"","url":"https://api.github.com/users/paprka","html_url":"https://github.com/paprka","followers_url":"https://api.github.com/users/paprka/followers","following_url":"https://api.github.com/users/paprka/following{/other_user}","gists_url":"https://api.github.com/users/paprka/gists{/gist_id}","starred_url":"https://api.github.com/users/paprka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paprka/subscriptions","organizations_url":"https://api.github.com/users/paprka/orgs","repos_url":"https://api.github.com/users/paprka/repos","events_url":"https://api.github.com/users/paprka/events{/privacy}","received_events_url":"https://api.github.com/users/paprka/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/paprka/-tg-station","description":"/tg/'s SS13 branch","fork":true,"url":"https://api.github.com/repos/paprka/-tg-station","forks_url":"https://api.github.com/repos/paprka/-tg-station/forks","keys_url":"https://api.github.com/repos/paprka/-tg-station/keys{/key_id}","collaborators_url":"https://api.github.com/repos/paprka/-tg-station/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/paprka/-tg-station/teams","hooks_url":"https://api.github.com/repos/paprka/-tg-station/hooks","issue_events_url":"https://api.github.com/repos/paprka/-tg-station/issues/events{/number}","events_url":"https://api.github.com/repos/paprka/-tg-station/events","assignees_url":"https://api.github.com/repos/paprka/-tg-station/assignees{/user}","branches_url":"https://api.github.com/repos/paprka/-tg-station/branches{/branch}","tags_url":"https://api.github.com/repos/paprka/-tg-station/tags","blobs_url":"https://api.github.com/repos/paprka/-tg-station/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/paprka/-tg-station/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/paprka/-tg-station/git/refs{/sha}","trees_url":"https://api.github.com/repos/paprka/-tg-station/git/trees{/sha}","statuses_url":"https://api.github.com/repos/paprka/-tg-station/statuses/{sha}","languages_url":"https://api.github.com/repos/paprka/-tg-station/languages","stargazers_url":"https://api.github.com/repos/paprka/-tg-station/stargazers","contributors_url":"https://api.github.com/repos/paprka/-tg-station/contributors","subscribers_url":"https://api.github.com/repos/paprka/-tg-station/subscribers","subscription_url":"https://api.github.com/repos/paprka/-tg-station/subscription","commits_url":"https://api.github.com/repos/paprka/-tg-station/commits{/sha}","git_commits_url":"https://api.github.com/repos/paprka/-tg-station/git/commits{/sha}","comments_url":"https://api.github.com/repos/paprka/-tg-station/comments{/number}","issue_comment_url":"https://api.github.com/repos/paprka/-tg-station/issues/comments/{number}","contents_url":"https://api.github.com/repos/paprka/-tg-station/contents/{+path}","compare_url":"https://api.github.com/repos/paprka/-tg-station/compare/{base}...{head}","merges_url":"https://api.github.com/repos/paprka/-tg-station/merges","archive_url":"https://api.github.com/repos/paprka/-tg-station/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/paprka/-tg-station/downloads","issues_url":"https://api.github.com/repos/paprka/-tg-station/issues{/number}","pulls_url":"https://api.github.com/repos/paprka/-tg-station/pulls{/number}","milestones_url":"https://api.github.com/repos/paprka/-tg-station/milestones{/number}","notifications_url":"https://api.github.com/repos/paprka/-tg-station/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/paprka/-tg-station/labels{/name}","releases_url":"https://api.github.com/repos/paprka/-tg-station/releases{/id}","created_at":"2014-04-10T05:52:23Z","updated_at":"2015-02-14T06:19:40Z","pushed_at":"2015-02-14T20:50:10Z","git_url":"git://github.com/paprka/-tg-station.git","ssh_url":"git@github.com:paprka/-tg-station.git","clone_url":"https://github.com/paprka/-tg-station.git","svn_url":"https://github.com/paprka/-tg-station","homepage":"","size":447556,"stargazers_count":0,"watchers_count":0,"language":"DM","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"tgstation:master","ref":"master","sha":"45445114808c373bc9a83c8b48dbbb7dcfd0775d","user":{"login":"tgstation","id":1363778,"avatar_url":"https://avatars.githubusercontent.com/u/1363778?v=3","gravatar_id":"","url":"https://api.github.com/users/tgstation","html_url":"https://github.com/tgstation","followers_url":"https://api.github.com/users/tgstation/followers","following_url":"https://api.github.com/users/tgstation/following{/other_user}","gists_url":"https://api.github.com/users/tgstation/gists{/gist_id}","starred_url":"https://api.github.com/users/tgstation/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tgstation/subscriptions","organizations_url":"https://api.github.com/users/tgstation/orgs","repos_url":"https://api.github.com/users/tgstation/repos","events_url":"https://api.github.com/users/tgstation/events{/privacy}","received_events_url":"https://api.github.com/users/tgstation/received_events","type":"Organization","site_admin":false},"repo":{"id":3234987,"name":"-tg-station","full_name":"tgstation/-tg-station","owner":{"login":"tgstation","id":1363778,"avatar_url":"https://avatars.githubusercontent.com/u/1363778?v=3","gravatar_id":"","url":"https://api.github.com/users/tgstation","html_url":"https://github.com/tgstation","followers_url":"https://api.github.com/users/tgstation/followers","following_url":"https://api.github.com/users/tgstation/following{/other_user}","gists_url":"https://api.github.com/users/tgstation/gists{/gist_id}","starred_url":"https://api.github.com/users/tgstation/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tgstation/subscriptions","organizations_url":"https://api.github.com/users/tgstation/orgs","repos_url":"https://api.github.com/users/tgstation/repos","events_url":"https://api.github.com/users/tgstation/events{/privacy}","received_events_url":"https://api.github.com/users/tgstation/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/tgstation/-tg-station","description":"/tg/'s SS13 branch","fork":false,"url":"https://api.github.com/repos/tgstation/-tg-station","forks_url":"https://api.github.com/repos/tgstation/-tg-station/forks","keys_url":"https://api.github.com/repos/tgstation/-tg-station/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tgstation/-tg-station/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tgstation/-tg-station/teams","hooks_url":"https://api.github.com/repos/tgstation/-tg-station/hooks","issue_events_url":"https://api.github.com/repos/tgstation/-tg-station/issues/events{/number}","events_url":"https://api.github.com/repos/tgstation/-tg-station/events","assignees_url":"https://api.github.com/repos/tgstation/-tg-station/assignees{/user}","branches_url":"https://api.github.com/repos/tgstation/-tg-station/branches{/branch}","tags_url":"https://api.github.com/repos/tgstation/-tg-station/tags","blobs_url":"https://api.github.com/repos/tgstation/-tg-station/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tgstation/-tg-station/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tgstation/-tg-station/git/refs{/sha}","trees_url":"https://api.github.com/repos/tgstation/-tg-station/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tgstation/-tg-station/statuses/{sha}","languages_url":"https://api.github.com/repos/tgstation/-tg-station/languages","stargazers_url":"https://api.github.com/repos/tgstation/-tg-station/stargazers","contributors_url":"https://api.github.com/repos/tgstation/-tg-station/contributors","subscribers_url":"https://api.github.com/repos/tgstation/-tg-station/subscribers","subscription_url":"https://api.github.com/repos/tgstation/-tg-station/subscription","commits_url":"https://api.github.com/repos/tgstation/-tg-station/commits{/sha}","git_commits_url":"https://api.github.com/repos/tgstation/-tg-station/git/commits{/sha}","comments_url":"https://api.github.com/repos/tgstation/-tg-station/comments{/number}","issue_comment_url":"https://api.github.com/repos/tgstation/-tg-station/issues/comments/{number}","contents_url":"https://api.github.com/repos/tgstation/-tg-station/contents/{+path}","compare_url":"https://api.github.com/repos/tgstation/-tg-station/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tgstation/-tg-station/merges","archive_url":"https://api.github.com/repos/tgstation/-tg-station/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tgstation/-tg-station/downloads","issues_url":"https://api.github.com/repos/tgstation/-tg-station/issues{/number}","pulls_url":"https://api.github.com/repos/tgstation/-tg-station/pulls{/number}","milestones_url":"https://api.github.com/repos/tgstation/-tg-station/milestones{/number}","notifications_url":"https://api.github.com/repos/tgstation/-tg-station/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tgstation/-tg-station/labels{/name}","releases_url":"https://api.github.com/repos/tgstation/-tg-station/releases{/id}","created_at":"2012-01-21T17:32:47Z","updated_at":"2015-02-14T11:14:18Z","pushed_at":"2015-02-14T11:14:17Z","git_url":"git://github.com/tgstation/-tg-station.git","ssh_url":"git@github.com:tgstation/-tg-station.git","clone_url":"https://github.com/tgstation/-tg-station.git","svn_url":"https://github.com/tgstation/-tg-station","homepage":"http://www.tgstation13.org/","size":593813,"stargazers_count":178,"watchers_count":178,"language":"DM","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":658,"mirror_url":null,"open_issues_count":751,"forks":658,"open_issues":751,"watchers":178,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/tgstation/-tg-station/pulls/7716"},"html":{"href":"https://github.com/tgstation/-tg-station/pull/7716"},"issue":{"href":"https://api.github.com/repos/tgstation/-tg-station/issues/7716"},"comments":{"href":"https://api.github.com/repos/tgstation/-tg-station/issues/7716/comments"},"review_comments":{"href":"https://api.github.com/repos/tgstation/-tg-station/pulls/7716/comments"},"review_comment":{"href":"https://api.github.com/repos/tgstation/-tg-station/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/tgstation/-tg-station/pulls/7716/commits"},"statuses":{"href":"https://api.github.com/repos/tgstation/-tg-station/statuses/c66327318d96cf73d16394d3d8eae92720f4882a"}}}}