{"action":"created","comment":{"url":"https://api.github.com/repos/astorije/shout/pulls/comments/39354184","id":39354184,"diff_hunk":"@@ -0,0 +1,80 @@\n+var _ = require(\"lodash\");\n+var OTR = require('otr').OTR;\n+var Chan = require(\"./chan\");\n+\n+module.exports = OtrStore;\n+\n+/**\n+ * Stores OTR state for a given user\n+ *\n+ * Handles current sessions.\n+ */\n+function OtrStore(name, client) {\n+\t_.merge(this, {\n+\t\tname: name,\n+\t\tsessions: {},\n+\t\tclient: client,","path":"src/models/OtrStore.js","position":16,"original_position":16,"commit_id":"d82ffb84ecd1295e2c913f66cc8a852ce0e0e13e","original_commit_id":"d82ffb84ecd1295e2c913f66cc8a852ce0e0e13e","user":{"login":"astorije","id":113730,"avatar_url":"https://avatars.githubusercontent.com/u/113730?v=3","gravatar_id":"","url":"https://api.github.com/users/astorije","html_url":"https://github.com/astorije","followers_url":"https://api.github.com/users/astorije/followers","following_url":"https://api.github.com/users/astorije/following{/other_user}","gists_url":"https://api.github.com/users/astorije/gists{/gist_id}","starred_url":"https://api.github.com/users/astorije/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/astorije/subscriptions","organizations_url":"https://api.github.com/users/astorije/orgs","repos_url":"https://api.github.com/users/astorije/repos","events_url":"https://api.github.com/users/astorije/events{/privacy}","received_events_url":"https://api.github.com/users/astorije/received_events","type":"User","site_admin":false},"body":"Padding comma here","created_at":"2015-09-13T23:54:16Z","updated_at":"2015-09-13T23:54:16Z","html_url":"https://github.com/astorije/shout/pull/1#discussion_r39354184","pull_request_url":"https://api.github.com/repos/astorije/shout/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/astorije/shout/pulls/comments/39354184"},"html":{"href":"https://github.com/astorije/shout/pull/1#discussion_r39354184"},"pull_request":{"href":"https://api.github.com/repos/astorije/shout/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/astorije/shout/pulls/1","id":44621064,"html_url":"https://github.com/astorije/shout/pull/1","diff_url":"https://github.com/astorije/shout/pull/1.diff","patch_url":"https://github.com/astorije/shout/pull/1.patch","issue_url":"https://api.github.com/repos/astorije/shout/issues/1","number":1,"state":"open","locked":false,"title":"First working implementation of OTR","user":{"login":"JocelynDelalande","id":429633,"avatar_url":"https://avatars.githubusercontent.com/u/429633?v=3","gravatar_id":"","url":"https://api.github.com/users/JocelynDelalande","html_url":"https://github.com/JocelynDelalande","followers_url":"https://api.github.com/users/JocelynDelalande/followers","following_url":"https://api.github.com/users/JocelynDelalande/following{/other_user}","gists_url":"https://api.github.com/users/JocelynDelalande/gists{/gist_id}","starred_url":"https://api.github.com/users/JocelynDelalande/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JocelynDelalande/subscriptions","organizations_url":"https://api.github.com/users/JocelynDelalande/orgs","repos_url":"https://api.github.com/users/JocelynDelalande/repos","events_url":"https://api.github.com/users/JocelynDelalande/events{/privacy}","received_events_url":"https://api.github.com/users/JocelynDelalande/received_events","type":"User","site_admin":false},"body":"You have to start OTR key negociation with a message like `?OTRv24x?`","created_at":"2015-09-10T02:06:24Z","updated_at":"2015-09-13T23:54:16Z","closed_at":null,"merged_at":null,"merge_commit_sha":"210b76df40c6e88b2ae19851888a40f62363ba8b","assignee":{"login":"astorije","id":113730,"avatar_url":"https://avatars.githubusercontent.com/u/113730?v=3","gravatar_id":"","url":"https://api.github.com/users/astorije","html_url":"https://github.com/astorije","followers_url":"https://api.github.com/users/astorije/followers","following_url":"https://api.github.com/users/astorije/following{/other_user}","gists_url":"https://api.github.com/users/astorije/gists{/gist_id}","starred_url":"https://api.github.com/users/astorije/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/astorije/subscriptions","organizations_url":"https://api.github.com/users/astorije/orgs","repos_url":"https://api.github.com/users/astorije/repos","events_url":"https://api.github.com/users/astorije/events{/privacy}","received_events_url":"https://api.github.com/users/astorije/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/astorije/shout/pulls/1/commits","review_comments_url":"https://api.github.com/repos/astorije/shout/pulls/1/comments","review_comment_url":"https://api.github.com/repos/astorije/shout/pulls/comments{/number}","comments_url":"https://api.github.com/repos/astorije/shout/issues/1/comments","statuses_url":"https://api.github.com/repos/astorije/shout/statuses/d82ffb84ecd1295e2c913f66cc8a852ce0e0e13e","head":{"label":"astorije:jd-otr-purejs","ref":"jd-otr-purejs","sha":"d82ffb84ecd1295e2c913f66cc8a852ce0e0e13e","user":{"login":"astorije","id":113730,"avatar_url":"https://avatars.githubusercontent.com/u/113730?v=3","gravatar_id":"","url":"https://api.github.com/users/astorije","html_url":"https://github.com/astorije","followers_url":"https://api.github.com/users/astorije/followers","following_url":"https://api.github.com/users/astorije/following{/other_user}","gists_url":"https://api.github.com/users/astorije/gists{/gist_id}","starred_url":"https://api.github.com/users/astorije/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/astorije/subscriptions","organizations_url":"https://api.github.com/users/astorije/orgs","repos_url":"https://api.github.com/users/astorije/repos","events_url":"https://api.github.com/users/astorije/events{/privacy}","received_events_url":"https://api.github.com/users/astorije/received_events","type":"User","site_admin":false},"repo":{"id":41759385,"name":"shout","full_name":"astorije/shout","owner":{"login":"astorije","id":113730,"avatar_url":"https://avatars.githubusercontent.com/u/113730?v=3","gravatar_id":"","url":"https://api.github.com/users/astorije","html_url":"https://github.com/astorije","followers_url":"https://api.github.com/users/astorije/followers","following_url":"https://api.github.com/users/astorije/following{/other_user}","gists_url":"https://api.github.com/users/astorije/gists{/gist_id}","starred_url":"https://api.github.com/users/astorije/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/astorije/subscriptions","organizations_url":"https://api.github.com/users/astorije/orgs","repos_url":"https://api.github.com/users/astorije/repos","events_url":"https://api.github.com/users/astorije/events{/privacy}","received_events_url":"https://api.github.com/users/astorije/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/astorije/shout","description":"Shout — The self-hosted web IRC client","fork":true,"url":"https://api.github.com/repos/astorije/shout","forks_url":"https://api.github.com/repos/astorije/shout/forks","keys_url":"https://api.github.com/repos/astorije/shout/keys{/key_id}","collaborators_url":"https://api.github.com/repos/astorije/shout/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/astorije/shout/teams","hooks_url":"https://api.github.com/repos/astorije/shout/hooks","issue_events_url":"https://api.github.com/repos/astorije/shout/issues/events{/number}","events_url":"https://api.github.com/repos/astorije/shout/events","assignees_url":"https://api.github.com/repos/astorije/shout/assignees{/user}","branches_url":"https://api.github.com/repos/astorije/shout/branches{/branch}","tags_url":"https://api.github.com/repos/astorije/shout/tags","blobs_url":"https://api.github.com/repos/astorije/shout/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/astorije/shout/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/astorije/shout/git/refs{/sha}","trees_url":"https://api.github.com/repos/astorije/shout/git/trees{/sha}","statuses_url":"https://api.github.com/repos/astorije/shout/statuses/{sha}","languages_url":"https://api.github.com/repos/astorije/shout/languages","stargazers_url":"https://api.github.com/repos/astorije/shout/stargazers","contributors_url":"https://api.github.com/repos/astorije/shout/contributors","subscribers_url":"https://api.github.com/repos/astorije/shout/subscribers","subscription_url":"https://api.github.com/repos/astorije/shout/subscription","commits_url":"https://api.github.com/repos/astorije/shout/commits{/sha}","git_commits_url":"https://api.github.com/repos/astorije/shout/git/commits{/sha}","comments_url":"https://api.github.com/repos/astorije/shout/comments{/number}","issue_comment_url":"https://api.github.com/repos/astorije/shout/issues/comments{/number}","contents_url":"https://api.github.com/repos/astorije/shout/contents/{+path}","compare_url":"https://api.github.com/repos/astorije/shout/compare/{base}...{head}","merges_url":"https://api.github.com/repos/astorije/shout/merges","archive_url":"https://api.github.com/repos/astorije/shout/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/astorije/shout/downloads","issues_url":"https://api.github.com/repos/astorije/shout/issues{/number}","pulls_url":"https://api.github.com/repos/astorije/shout/pulls{/number}","milestones_url":"https://api.github.com/repos/astorije/shout/milestones{/number}","notifications_url":"https://api.github.com/repos/astorije/shout/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/astorije/shout/labels{/name}","releases_url":"https://api.github.com/repos/astorije/shout/releases{/id}","created_at":"2015-09-01T19:43:15Z","updated_at":"2015-09-13T22:50:15Z","pushed_at":"2015-09-13T23:31:30Z","git_url":"git://github.com/astorije/shout.git","ssh_url":"git@github.com:astorije/shout.git","clone_url":"https://github.com/astorije/shout.git","svn_url":"https://github.com/astorije/shout","homepage":"http://shout-irc.com/","size":4312,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":5,"forks":0,"open_issues":5,"watchers":0,"default_branch":"master"}},"base":{"label":"astorije:otr","ref":"otr","sha":"2cee0ea6ef5ee51de0190332f976934b55bbc8e4","user":{"login":"astorije","id":113730,"avatar_url":"https://avatars.githubusercontent.com/u/113730?v=3","gravatar_id":"","url":"https://api.github.com/users/astorije","html_url":"https://github.com/astorije","followers_url":"https://api.github.com/users/astorije/followers","following_url":"https://api.github.com/users/astorije/following{/other_user}","gists_url":"https://api.github.com/users/astorije/gists{/gist_id}","starred_url":"https://api.github.com/users/astorije/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/astorije/subscriptions","organizations_url":"https://api.github.com/users/astorije/orgs","repos_url":"https://api.github.com/users/astorije/repos","events_url":"https://api.github.com/users/astorije/events{/privacy}","received_events_url":"https://api.github.com/users/astorije/received_events","type":"User","site_admin":false},"repo":{"id":41759385,"name":"shout","full_name":"astorije/shout","owner":{"login":"astorije","id":113730,"avatar_url":"https://avatars.githubusercontent.com/u/113730?v=3","gravatar_id":"","url":"https://api.github.com/users/astorije","html_url":"https://github.com/astorije","followers_url":"https://api.github.com/users/astorije/followers","following_url":"https://api.github.com/users/astorije/following{/other_user}","gists_url":"https://api.github.com/users/astorije/gists{/gist_id}","starred_url":"https://api.github.com/users/astorije/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/astorije/subscriptions","organizations_url":"https://api.github.com/users/astorije/orgs","repos_url":"https://api.github.com/users/astorije/repos","events_url":"https://api.github.com/users/astorije/events{/privacy}","received_events_url":"https://api.github.com/users/astorije/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/astorije/shout","description":"Shout — The self-hosted web IRC client","fork":true,"url":"https://api.github.com/repos/astorije/shout","forks_url":"https://api.github.com/repos/astorije/shout/forks","keys_url":"https://api.github.com/repos/astorije/shout/keys{/key_id}","collaborators_url":"https://api.github.com/repos/astorije/shout/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/astorije/shout/teams","hooks_url":"https://api.github.com/repos/astorije/shout/hooks","issue_events_url":"https://api.github.com/repos/astorije/shout/issues/events{/number}","events_url":"https://api.github.com/repos/astorije/shout/events","assignees_url":"https://api.github.com/repos/astorije/shout/assignees{/user}","branches_url":"https://api.github.com/repos/astorije/shout/branches{/branch}","tags_url":"https://api.github.com/repos/astorije/shout/tags","blobs_url":"https://api.github.com/repos/astorije/shout/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/astorije/shout/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/astorije/shout/git/refs{/sha}","trees_url":"https://api.github.com/repos/astorije/shout/git/trees{/sha}","statuses_url":"https://api.github.com/repos/astorije/shout/statuses/{sha}","languages_url":"https://api.github.com/repos/astorije/shout/languages","stargazers_url":"https://api.github.com/repos/astorije/shout/stargazers","contributors_url":"https://api.github.com/repos/astorije/shout/contributors","subscribers_url":"https://api.github.com/repos/astorije/shout/subscribers","subscription_url":"https://api.github.com/repos/astorije/shout/subscription","commits_url":"https://api.github.com/repos/astorije/shout/commits{/sha}","git_commits_url":"https://api.github.com/repos/astorije/shout/git/commits{/sha}","comments_url":"https://api.github.com/repos/astorije/shout/comments{/number}","issue_comment_url":"https://api.github.com/repos/astorije/shout/issues/comments{/number}","contents_url":"https://api.github.com/repos/astorije/shout/contents/{+path}","compare_url":"https://api.github.com/repos/astorije/shout/compare/{base}...{head}","merges_url":"https://api.github.com/repos/astorije/shout/merges","archive_url":"https://api.github.com/repos/astorije/shout/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/astorije/shout/downloads","issues_url":"https://api.github.com/repos/astorije/shout/issues{/number}","pulls_url":"https://api.github.com/repos/astorije/shout/pulls{/number}","milestones_url":"https://api.github.com/repos/astorije/shout/milestones{/number}","notifications_url":"https://api.github.com/repos/astorije/shout/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/astorije/shout/labels{/name}","releases_url":"https://api.github.com/repos/astorije/shout/releases{/id}","created_at":"2015-09-01T19:43:15Z","updated_at":"2015-09-13T22:50:15Z","pushed_at":"2015-09-13T23:31:30Z","git_url":"git://github.com/astorije/shout.git","ssh_url":"git@github.com:astorije/shout.git","clone_url":"https://github.com/astorije/shout.git","svn_url":"https://github.com/astorije/shout","homepage":"http://shout-irc.com/","size":4312,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":5,"forks":0,"open_issues":5,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/astorije/shout/pulls/1"},"html":{"href":"https://github.com/astorije/shout/pull/1"},"issue":{"href":"https://api.github.com/repos/astorije/shout/issues/1"},"comments":{"href":"https://api.github.com/repos/astorije/shout/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/astorije/shout/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/astorije/shout/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/astorije/shout/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/astorije/shout/statuses/d82ffb84ecd1295e2c913f66cc8a852ce0e0e13e"}}}}