{"action":"created","issue":{"url":"https://api.github.com/repos/otr4j/otr4j/issues/23","labels_url":"https://api.github.com/repos/otr4j/otr4j/issues/23/labels{/name}","comments_url":"https://api.github.com/repos/otr4j/otr4j/issues/23/comments","events_url":"https://api.github.com/repos/otr4j/otr4j/issues/23/events","html_url":"https://github.com/otr4j/otr4j/pull/23","id":57040924,"number":23,"title":"add default message to human receiving OTR query; and random fixes","user":{"login":"eighthave","id":143465,"avatar_url":"https://avatars.githubusercontent.com/u/143465?v=3","gravatar_id":"","url":"https://api.github.com/users/eighthave","html_url":"https://github.com/eighthave","followers_url":"https://api.github.com/users/eighthave/followers","following_url":"https://api.github.com/users/eighthave/following{/other_user}","gists_url":"https://api.github.com/users/eighthave/gists{/gist_id}","starred_url":"https://api.github.com/users/eighthave/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eighthave/subscriptions","organizations_url":"https://api.github.com/users/eighthave/orgs","repos_url":"https://api.github.com/users/eighthave/repos","events_url":"https://api.github.com/users/eighthave/events{/privacy}","received_events_url":"https://api.github.com/users/eighthave/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-02-09T14:58:25Z","updated_at":"2015-02-13T16:40:50Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/otr4j/otr4j/pulls/23","html_url":"https://github.com/otr4j/otr4j/pull/23","diff_url":"https://github.com/otr4j/otr4j/pull/23.diff","patch_url":"https://github.com/otr4j/otr4j/pull/23.patch"},"body":"This adds a method to `SerializationUtils` to set the text of the OTR query message so that it can be customized and translated per app.  It includes a default English version that is quite similar to the message that libotr includes.  My only uncertainty is whether the API should actually be something like `public String OtrEngineHost.getOtrRequestMessage()`.  That would go towards keeping the entire API in `OtrEngineHost`.\r\n\r\nThe others are short commits that fix little things.  They seemed quite uncontroversial, so I am lumping into a single request, since the comments can happen directly on each commit anyway."},"comment":{"url":"https://api.github.com/repos/otr4j/otr4j/issues/comments/74283431","html_url":"https://github.com/otr4j/otr4j/pull/23#issuecomment-74283431","issue_url":"https://api.github.com/repos/otr4j/otr4j/issues/23","id":74283431,"user":{"login":"eighthave","id":143465,"avatar_url":"https://avatars.githubusercontent.com/u/143465?v=3","gravatar_id":"","url":"https://api.github.com/users/eighthave","html_url":"https://github.com/eighthave","followers_url":"https://api.github.com/users/eighthave/followers","following_url":"https://api.github.com/users/eighthave/following{/other_user}","gists_url":"https://api.github.com/users/eighthave/gists{/gist_id}","starred_url":"https://api.github.com/users/eighthave/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eighthave/subscriptions","organizations_url":"https://api.github.com/users/eighthave/orgs","repos_url":"https://api.github.com/users/eighthave/repos","events_url":"https://api.github.com/users/eighthave/events{/privacy}","received_events_url":"https://api.github.com/users/eighthave/received_events","type":"User","site_admin":false},"created_at":"2015-02-13T16:40:50Z","updated_at":"2015-02-13T16:40:50Z","body":"Since this is still unreviewed, I added a couple of more random fixes:\r\n\r\n1. UTF-8 tests and a related fix found by those tests where otr4j would crash if the message text contained a NULL character, which is not really valid UTF-8, but might end up in the input anyway.\r\n2. instead of sending a plain text message on unknown state, otr4j should throw an `Exception`."}}