{"action":"created","issue":{"url":"https://api.github.com/repos/Facepunch/garrysmod-requests/issues/895","repository_url":"https://api.github.com/repos/Facepunch/garrysmod-requests","labels_url":"https://api.github.com/repos/Facepunch/garrysmod-requests/issues/895/labels{/name}","comments_url":"https://api.github.com/repos/Facepunch/garrysmod-requests/issues/895/comments","events_url":"https://api.github.com/repos/Facepunch/garrysmod-requests/issues/895/events","html_url":"https://github.com/Facepunch/garrysmod-requests/issues/895","id":201108191,"number":895,"title":"PreChatAddText","user":{"login":"biorisk2","id":8109941,"avatar_url":"https://avatars.githubusercontent.com/u/8109941?v=3","gravatar_id":"","url":"https://api.github.com/users/biorisk2","html_url":"https://github.com/biorisk2","followers_url":"https://api.github.com/users/biorisk2/followers","following_url":"https://api.github.com/users/biorisk2/following{/other_user}","gists_url":"https://api.github.com/users/biorisk2/gists{/gist_id}","starred_url":"https://api.github.com/users/biorisk2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/biorisk2/subscriptions","organizations_url":"https://api.github.com/users/biorisk2/orgs","repos_url":"https://api.github.com/users/biorisk2/repos","events_url":"https://api.github.com/users/biorisk2/events{/privacy}","received_events_url":"https://api.github.com/users/biorisk2/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2017-01-16T20:06:34Z","updated_at":"2017-01-17T11:02:49Z","closed_at":"2017-01-16T20:30:53Z","body":"There are a lot of adware addons on the gmod workshop, and despite reporting them, nothing happens.. ever.\r\n\r\n----scummy code----\r\ntimer.Simple( 300, function() chat.AddText( Color(255,255,255), \"Ad system modified by Servius from\", Color(100,180,255), \" Phenomenal Nations\" ) end )\r\ntimer.Simple( 30, function() chat.AddText( col, message ) end )\r\n----------------------\r\n\r\n\r\nThis is obnoxious, having a way to stop these  chat.AddTexts would benefit Garry's Mod quite a lot.\r\n\r\nA way that I see possible is creating a client side function PreChatAddText(message) and having the ability to return true/false on wether or not the text goes to the chat box.\r\n\r\nThis not only stops the adware issue (atleast for people who create addons stopping these kinds of things) but it could very well be used inside of game modes and scripts."},"comment":{"url":"https://api.github.com/repos/Facepunch/garrysmod-requests/issues/comments/273109445","html_url":"https://github.com/Facepunch/garrysmod-requests/issues/895#issuecomment-273109445","issue_url":"https://api.github.com/repos/Facepunch/garrysmod-requests/issues/895","id":273109445,"user":{"login":"biorisk2","id":8109941,"avatar_url":"https://avatars.githubusercontent.com/u/8109941?v=3","gravatar_id":"","url":"https://api.github.com/users/biorisk2","html_url":"https://github.com/biorisk2","followers_url":"https://api.github.com/users/biorisk2/followers","following_url":"https://api.github.com/users/biorisk2/following{/other_user}","gists_url":"https://api.github.com/users/biorisk2/gists{/gist_id}","starred_url":"https://api.github.com/users/biorisk2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/biorisk2/subscriptions","organizations_url":"https://api.github.com/users/biorisk2/orgs","repos_url":"https://api.github.com/users/biorisk2/repos","events_url":"https://api.github.com/users/biorisk2/events{/privacy}","received_events_url":"https://api.github.com/users/biorisk2/received_events","type":"User","site_admin":false},"created_at":"2017-01-17T11:02:49Z","updated_at":"2017-01-17T11:02:49Z","body":"Reupload your addon without all of the annoying ads\r\nBut this breaks the workshop terms of service, that is the issue at hand"}}
{"actor":{"display_login":"biorisk2"}}