{"action":"created","comment":{"url":"https://api.github.com/repos/bitlbee/bitlbee/pulls/comments/26444100","id":26444100,"diff_hunk":"@@ -1074,19 +1077,21 @@ static void *prplcb_request_action(const char *title, const char *primary, const\n  */\n static void prplcb_close_request(PurpleRequestType type, void *data)\n {\n+\tif (!data) {\n+\t\treturn;\n+\t}\n+\n \tif (type == PURPLE_REQUEST_ACTION) {","path":"protocols/purple/purple.c","position":18,"original_position":18,"commit_id":"d704c3a4f847c9deebcefbb78c9614ef04d1b678","original_commit_id":"d704c3a4f847c9deebcefbb78c9614ef04d1b678","user":{"login":"dequis","id":94108,"avatar_url":"https://avatars.githubusercontent.com/u/94108?v=3","gravatar_id":"","url":"https://api.github.com/users/dequis","html_url":"https://github.com/dequis","followers_url":"https://api.github.com/users/dequis/followers","following_url":"https://api.github.com/users/dequis/following{/other_user}","gists_url":"https://api.github.com/users/dequis/gists{/gist_id}","starred_url":"https://api.github.com/users/dequis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dequis/subscriptions","organizations_url":"https://api.github.com/users/dequis/orgs","repos_url":"https://api.github.com/users/dequis/repos","events_url":"https://api.github.com/users/dequis/events{/privacy}","received_events_url":"https://api.github.com/users/dequis/received_events","type":"User","site_admin":false},"body":"At heart I'm still a python programmer. `switch` does not exist.","created_at":"2015-03-15T02:57:19Z","updated_at":"2015-03-15T02:57:19Z","html_url":"https://github.com/bitlbee/bitlbee/pull/28#discussion_r26444100","pull_request_url":"https://api.github.com/repos/bitlbee/bitlbee/pulls/28","_links":{"self":{"href":"https://api.github.com/repos/bitlbee/bitlbee/pulls/comments/26444100"},"html":{"href":"https://github.com/bitlbee/bitlbee/pull/28#discussion_r26444100"},"pull_request":{"href":"https://api.github.com/repos/bitlbee/bitlbee/pulls/28"}}},"pull_request":{"url":"https://api.github.com/repos/bitlbee/bitlbee/pulls/28","id":31194314,"html_url":"https://github.com/bitlbee/bitlbee/pull/28","diff_url":"https://github.com/bitlbee/bitlbee/pull/28.diff","patch_url":"https://github.com/bitlbee/bitlbee/pull/28.patch","issue_url":"https://api.github.com/repos/bitlbee/bitlbee/issues/28","number":28,"state":"open","locked":false,"title":"purple: Implement prplcb_close_request for request_input","user":{"login":"dequis","id":94108,"avatar_url":"https://avatars.githubusercontent.com/u/94108?v=3","gravatar_id":"","url":"https://api.github.com/users/dequis","html_url":"https://github.com/dequis","followers_url":"https://api.github.com/users/dequis/followers","following_url":"https://api.github.com/users/dequis/following{/other_user}","gists_url":"https://api.github.com/users/dequis/gists{/gist_id}","starred_url":"https://api.github.com/users/dequis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dequis/subscriptions","organizations_url":"https://api.github.com/users/dequis/orgs","repos_url":"https://api.github.com/users/dequis/repos","events_url":"https://api.github.com/users/dequis/events{/privacy}","received_events_url":"https://api.github.com/users/dequis/received_events","type":"User","site_admin":false},"body":"Followup to #22 and #23\r\n\r\nAdds more stuff to the `request_input_data` struct so that `prplcb_close_request` has more context to work with.\r\n\r\nTested and valgrind'd. Just needs some review for nitpicks.","created_at":"2015-03-15T02:49:48Z","updated_at":"2015-03-15T02:57:19Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2a57a3ac79ff1cb8c14c9c14d8c074c990976f89","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/bitlbee/bitlbee/pulls/28/commits","review_comments_url":"https://api.github.com/repos/bitlbee/bitlbee/pulls/28/comments","review_comment_url":"https://api.github.com/repos/bitlbee/bitlbee/pulls/comments{/number}","comments_url":"https://api.github.com/repos/bitlbee/bitlbee/issues/28/comments","statuses_url":"https://api.github.com/repos/bitlbee/bitlbee/statuses/d704c3a4f847c9deebcefbb78c9614ef04d1b678","head":{"label":"bitlbee:purple_request_input","ref":"purple_request_input","sha":"d704c3a4f847c9deebcefbb78c9614ef04d1b678","user":{"login":"bitlbee","id":6410240,"avatar_url":"https://avatars.githubusercontent.com/u/6410240?v=3","gravatar_id":"","url":"https://api.github.com/users/bitlbee","html_url":"https://github.com/bitlbee","followers_url":"https://api.github.com/users/bitlbee/followers","following_url":"https://api.github.com/users/bitlbee/following{/other_user}","gists_url":"https://api.github.com/users/bitlbee/gists{/gist_id}","starred_url":"https://api.github.com/users/bitlbee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bitlbee/subscriptions","organizations_url":"https://api.github.com/users/bitlbee/orgs","repos_url":"https://api.github.com/users/bitlbee/repos","events_url":"https://api.github.com/users/bitlbee/events{/privacy}","received_events_url":"https://api.github.com/users/bitlbee/received_events","type":"Organization","site_admin":false},"repo":{"id":29792084,"name":"bitlbee","full_name":"bitlbee/bitlbee","owner":{"login":"bitlbee","id":6410240,"avatar_url":"https://avatars.githubusercontent.com/u/6410240?v=3","gravatar_id":"","url":"https://api.github.com/users/bitlbee","html_url":"https://github.com/bitlbee","followers_url":"https://api.github.com/users/bitlbee/followers","following_url":"https://api.github.com/users/bitlbee/following{/other_user}","gists_url":"https://api.github.com/users/bitlbee/gists{/gist_id}","starred_url":"https://api.github.com/users/bitlbee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bitlbee/subscriptions","organizations_url":"https://api.github.com/users/bitlbee/orgs","repos_url":"https://api.github.com/users/bitlbee/repos","events_url":"https://api.github.com/users/bitlbee/events{/privacy}","received_events_url":"https://api.github.com/users/bitlbee/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/bitlbee/bitlbee","description":"An IRC to other chat networks gateway - Main development branch","fork":false,"url":"https://api.github.com/repos/bitlbee/bitlbee","forks_url":"https://api.github.com/repos/bitlbee/bitlbee/forks","keys_url":"https://api.github.com/repos/bitlbee/bitlbee/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bitlbee/bitlbee/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bitlbee/bitlbee/teams","hooks_url":"https://api.github.com/repos/bitlbee/bitlbee/hooks","issue_events_url":"https://api.github.com/repos/bitlbee/bitlbee/issues/events{/number}","events_url":"https://api.github.com/repos/bitlbee/bitlbee/events","assignees_url":"https://api.github.com/repos/bitlbee/bitlbee/assignees{/user}","branches_url":"https://api.github.com/repos/bitlbee/bitlbee/branches{/branch}","tags_url":"https://api.github.com/repos/bitlbee/bitlbee/tags","blobs_url":"https://api.github.com/repos/bitlbee/bitlbee/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bitlbee/bitlbee/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bitlbee/bitlbee/git/refs{/sha}","trees_url":"https://api.github.com/repos/bitlbee/bitlbee/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bitlbee/bitlbee/statuses/{sha}","languages_url":"https://api.github.com/repos/bitlbee/bitlbee/languages","stargazers_url":"https://api.github.com/repos/bitlbee/bitlbee/stargazers","contributors_url":"https://api.github.com/repos/bitlbee/bitlbee/contributors","subscribers_url":"https://api.github.com/repos/bitlbee/bitlbee/subscribers","subscription_url":"https://api.github.com/repos/bitlbee/bitlbee/subscription","commits_url":"https://api.github.com/repos/bitlbee/bitlbee/commits{/sha}","git_commits_url":"https://api.github.com/repos/bitlbee/bitlbee/git/commits{/sha}","comments_url":"https://api.github.com/repos/bitlbee/bitlbee/comments{/number}","issue_comment_url":"https://api.github.com/repos/bitlbee/bitlbee/issues/comments{/number}","contents_url":"https://api.github.com/repos/bitlbee/bitlbee/contents/{+path}","compare_url":"https://api.github.com/repos/bitlbee/bitlbee/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bitlbee/bitlbee/merges","archive_url":"https://api.github.com/repos/bitlbee/bitlbee/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bitlbee/bitlbee/downloads","issues_url":"https://api.github.com/repos/bitlbee/bitlbee/issues{/number}","pulls_url":"https://api.github.com/repos/bitlbee/bitlbee/pulls{/number}","milestones_url":"https://api.github.com/repos/bitlbee/bitlbee/milestones{/number}","notifications_url":"https://api.github.com/repos/bitlbee/bitlbee/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bitlbee/bitlbee/labels{/name}","releases_url":"https://api.github.com/repos/bitlbee/bitlbee/releases{/id}","created_at":"2015-01-24T21:21:23Z","updated_at":"2015-03-14T13:19:18Z","pushed_at":"2015-03-15T02:46:08Z","git_url":"git://github.com/bitlbee/bitlbee.git","ssh_url":"git@github.com:bitlbee/bitlbee.git","clone_url":"https://github.com/bitlbee/bitlbee.git","svn_url":"https://github.com/bitlbee/bitlbee","homepage":"http://www.bitlbee.org/","size":4989,"stargazers_count":34,"watchers_count":34,"language":"C","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":7,"mirror_url":null,"open_issues_count":4,"forks":7,"open_issues":4,"watchers":34,"default_branch":"master"}},"base":{"label":"bitlbee:develop","ref":"develop","sha":"6a489929c121c20f7fad55fb6ec15c52643ee5ae","user":{"login":"bitlbee","id":6410240,"avatar_url":"https://avatars.githubusercontent.com/u/6410240?v=3","gravatar_id":"","url":"https://api.github.com/users/bitlbee","html_url":"https://github.com/bitlbee","followers_url":"https://api.github.com/users/bitlbee/followers","following_url":"https://api.github.com/users/bitlbee/following{/other_user}","gists_url":"https://api.github.com/users/bitlbee/gists{/gist_id}","starred_url":"https://api.github.com/users/bitlbee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bitlbee/subscriptions","organizations_url":"https://api.github.com/users/bitlbee/orgs","repos_url":"https://api.github.com/users/bitlbee/repos","events_url":"https://api.github.com/users/bitlbee/events{/privacy}","received_events_url":"https://api.github.com/users/bitlbee/received_events","type":"Organization","site_admin":false},"repo":{"id":29792084,"name":"bitlbee","full_name":"bitlbee/bitlbee","owner":{"login":"bitlbee","id":6410240,"avatar_url":"https://avatars.githubusercontent.com/u/6410240?v=3","gravatar_id":"","url":"https://api.github.com/users/bitlbee","html_url":"https://github.com/bitlbee","followers_url":"https://api.github.com/users/bitlbee/followers","following_url":"https://api.github.com/users/bitlbee/following{/other_user}","gists_url":"https://api.github.com/users/bitlbee/gists{/gist_id}","starred_url":"https://api.github.com/users/bitlbee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bitlbee/subscriptions","organizations_url":"https://api.github.com/users/bitlbee/orgs","repos_url":"https://api.github.com/users/bitlbee/repos","events_url":"https://api.github.com/users/bitlbee/events{/privacy}","received_events_url":"https://api.github.com/users/bitlbee/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/bitlbee/bitlbee","description":"An IRC to other chat networks gateway - Main development branch","fork":false,"url":"https://api.github.com/repos/bitlbee/bitlbee","forks_url":"https://api.github.com/repos/bitlbee/bitlbee/forks","keys_url":"https://api.github.com/repos/bitlbee/bitlbee/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bitlbee/bitlbee/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bitlbee/bitlbee/teams","hooks_url":"https://api.github.com/repos/bitlbee/bitlbee/hooks","issue_events_url":"https://api.github.com/repos/bitlbee/bitlbee/issues/events{/number}","events_url":"https://api.github.com/repos/bitlbee/bitlbee/events","assignees_url":"https://api.github.com/repos/bitlbee/bitlbee/assignees{/user}","branches_url":"https://api.github.com/repos/bitlbee/bitlbee/branches{/branch}","tags_url":"https://api.github.com/repos/bitlbee/bitlbee/tags","blobs_url":"https://api.github.com/repos/bitlbee/bitlbee/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bitlbee/bitlbee/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bitlbee/bitlbee/git/refs{/sha}","trees_url":"https://api.github.com/repos/bitlbee/bitlbee/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bitlbee/bitlbee/statuses/{sha}","languages_url":"https://api.github.com/repos/bitlbee/bitlbee/languages","stargazers_url":"https://api.github.com/repos/bitlbee/bitlbee/stargazers","contributors_url":"https://api.github.com/repos/bitlbee/bitlbee/contributors","subscribers_url":"https://api.github.com/repos/bitlbee/bitlbee/subscribers","subscription_url":"https://api.github.com/repos/bitlbee/bitlbee/subscription","commits_url":"https://api.github.com/repos/bitlbee/bitlbee/commits{/sha}","git_commits_url":"https://api.github.com/repos/bitlbee/bitlbee/git/commits{/sha}","comments_url":"https://api.github.com/repos/bitlbee/bitlbee/comments{/number}","issue_comment_url":"https://api.github.com/repos/bitlbee/bitlbee/issues/comments{/number}","contents_url":"https://api.github.com/repos/bitlbee/bitlbee/contents/{+path}","compare_url":"https://api.github.com/repos/bitlbee/bitlbee/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bitlbee/bitlbee/merges","archive_url":"https://api.github.com/repos/bitlbee/bitlbee/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bitlbee/bitlbee/downloads","issues_url":"https://api.github.com/repos/bitlbee/bitlbee/issues{/number}","pulls_url":"https://api.github.com/repos/bitlbee/bitlbee/pulls{/number}","milestones_url":"https://api.github.com/repos/bitlbee/bitlbee/milestones{/number}","notifications_url":"https://api.github.com/repos/bitlbee/bitlbee/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bitlbee/bitlbee/labels{/name}","releases_url":"https://api.github.com/repos/bitlbee/bitlbee/releases{/id}","created_at":"2015-01-24T21:21:23Z","updated_at":"2015-03-14T13:19:18Z","pushed_at":"2015-03-15T02:46:08Z","git_url":"git://github.com/bitlbee/bitlbee.git","ssh_url":"git@github.com:bitlbee/bitlbee.git","clone_url":"https://github.com/bitlbee/bitlbee.git","svn_url":"https://github.com/bitlbee/bitlbee","homepage":"http://www.bitlbee.org/","size":4989,"stargazers_count":34,"watchers_count":34,"language":"C","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":7,"mirror_url":null,"open_issues_count":4,"forks":7,"open_issues":4,"watchers":34,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/bitlbee/bitlbee/pulls/28"},"html":{"href":"https://github.com/bitlbee/bitlbee/pull/28"},"issue":{"href":"https://api.github.com/repos/bitlbee/bitlbee/issues/28"},"comments":{"href":"https://api.github.com/repos/bitlbee/bitlbee/issues/28/comments"},"review_comments":{"href":"https://api.github.com/repos/bitlbee/bitlbee/pulls/28/comments"},"review_comment":{"href":"https://api.github.com/repos/bitlbee/bitlbee/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/bitlbee/bitlbee/pulls/28/commits"},"statuses":{"href":"https://api.github.com/repos/bitlbee/bitlbee/statuses/d704c3a4f847c9deebcefbb78c9614ef04d1b678"}}}}