{"action":"created","comment":{"url":"https://api.github.com/repos/weechat/weechat/pulls/comments/50219031","id":50219031,"diff_hunk":"@@ -2098,34 +2097,26 @@ irc_server_send_one_msg (struct t_irc_server *server, int flags,\n         ptr_msg = (new_msg) ? new_msg : message;\n \n         msg_encoded = NULL;\n-        irc_message_parse (server, ptr_msg, NULL, NULL, NULL, NULL, NULL, NULL,\n-                           NULL, NULL, NULL, NULL, &pos_channel, &pos_text);\n-        if (weechat_config_boolean (irc_config_network_channel_encode))\n-            pos_encode = (pos_channel >= 0) ? pos_channel : pos_text;\n+        ptr_chan_nick = (channel) ? channel : nick;\n+        if (ptr_chan_nick)\n+        {\n+            snprintf (modifier_data, sizeof (modifier_data),\n+                      \"%s.%s.%s\",\n+                      weechat_plugin->name,\n+                      server->name,\n+                      ptr_chan_nick);\n+        }","path":"src/plugins/irc/irc-server.c","position":24,"original_position":24,"commit_id":"5308308f4f1346734792b1fb9d94ec89983113c8","original_commit_id":"5308308f4f1346734792b1fb9d94ec89983113c8","user":{"login":"mojadita","id":8736059,"avatar_url":"https://avatars.githubusercontent.com/u/8736059?v=3","gravatar_id":"","url":"https://api.github.com/users/mojadita","html_url":"https://github.com/mojadita","followers_url":"https://api.github.com/users/mojadita/followers","following_url":"https://api.github.com/users/mojadita/following{/other_user}","gists_url":"https://api.github.com/users/mojadita/gists{/gist_id}","starred_url":"https://api.github.com/users/mojadita/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mojadita/subscriptions","organizations_url":"https://api.github.com/users/mojadita/orgs","repos_url":"https://api.github.com/users/mojadita/repos","events_url":"https://api.github.com/users/mojadita/events{/privacy}","received_events_url":"https://api.github.com/users/mojadita/received_events","type":"User","site_admin":false},"body":"The then part of this if should be eliminated to be consistent with the decode part (not using nick/channel part in modifier)","created_at":"2016-01-20T06:30:01Z","updated_at":"2016-01-20T06:30:01Z","html_url":"https://github.com/weechat/weechat/pull/661#discussion_r50219031","pull_request_url":"https://api.github.com/repos/weechat/weechat/pulls/661","_links":{"self":{"href":"https://api.github.com/repos/weechat/weechat/pulls/comments/50219031"},"html":{"href":"https://github.com/weechat/weechat/pull/661#discussion_r50219031"},"pull_request":{"href":"https://api.github.com/repos/weechat/weechat/pulls/661"}}},"pull_request":{"url":"https://api.github.com/repos/weechat/weechat/pulls/661","id":56487729,"html_url":"https://github.com/weechat/weechat/pull/661","diff_url":"https://github.com/weechat/weechat/pull/661.diff","patch_url":"https://github.com/weechat/weechat/pull/661.patch","issue_url":"https://api.github.com/repos/weechat/weechat/issues/661","number":661,"state":"open","locked":false,"title":"Encode decode from server is misordered","user":{"login":"mojadita","id":8736059,"avatar_url":"https://avatars.githubusercontent.com/u/8736059?v=3","gravatar_id":"","url":"https://api.github.com/users/mojadita","html_url":"https://github.com/mojadita","followers_url":"https://api.github.com/users/mojadita/followers","following_url":"https://api.github.com/users/mojadita/following{/other_user}","gists_url":"https://api.github.com/users/mojadita/gists{/gist_id}","starred_url":"https://api.github.com/users/mojadita/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mojadita/subscriptions","organizations_url":"https://api.github.com/users/mojadita/orgs","repos_url":"https://api.github.com/users/mojadita/repos","events_url":"https://api.github.com/users/mojadita/events{/privacy}","received_events_url":"https://api.github.com/users/mojadita/received_events","type":"User","site_admin":false},"body":"Sorry, I did a rebase to master and the old branch must be deleted.\r\n\r\nNow the patch I think is correct.","created_at":"2016-01-19T16:14:45Z","updated_at":"2016-01-20T06:30:01Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7e1045e0ead642b7665f2a6493e03a08d6bd532d","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/weechat/weechat/pulls/661/commits","review_comments_url":"https://api.github.com/repos/weechat/weechat/pulls/661/comments","review_comment_url":"https://api.github.com/repos/weechat/weechat/pulls/comments{/number}","comments_url":"https://api.github.com/repos/weechat/weechat/issues/661/comments","statuses_url":"https://api.github.com/repos/weechat/weechat/statuses/5308308f4f1346734792b1fb9d94ec89983113c8","head":{"label":"mojadita:master","ref":"master","sha":"5308308f4f1346734792b1fb9d94ec89983113c8","user":{"login":"mojadita","id":8736059,"avatar_url":"https://avatars.githubusercontent.com/u/8736059?v=3","gravatar_id":"","url":"https://api.github.com/users/mojadita","html_url":"https://github.com/mojadita","followers_url":"https://api.github.com/users/mojadita/followers","following_url":"https://api.github.com/users/mojadita/following{/other_user}","gists_url":"https://api.github.com/users/mojadita/gists{/gist_id}","starred_url":"https://api.github.com/users/mojadita/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mojadita/subscriptions","organizations_url":"https://api.github.com/users/mojadita/orgs","repos_url":"https://api.github.com/users/mojadita/repos","events_url":"https://api.github.com/users/mojadita/events{/privacy}","received_events_url":"https://api.github.com/users/mojadita/received_events","type":"User","site_admin":false},"repo":{"id":49154170,"name":"weechat","full_name":"mojadita/weechat","owner":{"login":"mojadita","id":8736059,"avatar_url":"https://avatars.githubusercontent.com/u/8736059?v=3","gravatar_id":"","url":"https://api.github.com/users/mojadita","html_url":"https://github.com/mojadita","followers_url":"https://api.github.com/users/mojadita/followers","following_url":"https://api.github.com/users/mojadita/following{/other_user}","gists_url":"https://api.github.com/users/mojadita/gists{/gist_id}","starred_url":"https://api.github.com/users/mojadita/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mojadita/subscriptions","organizations_url":"https://api.github.com/users/mojadita/orgs","repos_url":"https://api.github.com/users/mojadita/repos","events_url":"https://api.github.com/users/mojadita/events{/privacy}","received_events_url":"https://api.github.com/users/mojadita/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mojadita/weechat","description":"The extensible chat client.","fork":true,"url":"https://api.github.com/repos/mojadita/weechat","forks_url":"https://api.github.com/repos/mojadita/weechat/forks","keys_url":"https://api.github.com/repos/mojadita/weechat/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mojadita/weechat/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mojadita/weechat/teams","hooks_url":"https://api.github.com/repos/mojadita/weechat/hooks","issue_events_url":"https://api.github.com/repos/mojadita/weechat/issues/events{/number}","events_url":"https://api.github.com/repos/mojadita/weechat/events","assignees_url":"https://api.github.com/repos/mojadita/weechat/assignees{/user}","branches_url":"https://api.github.com/repos/mojadita/weechat/branches{/branch}","tags_url":"https://api.github.com/repos/mojadita/weechat/tags","blobs_url":"https://api.github.com/repos/mojadita/weechat/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mojadita/weechat/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mojadita/weechat/git/refs{/sha}","trees_url":"https://api.github.com/repos/mojadita/weechat/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mojadita/weechat/statuses/{sha}","languages_url":"https://api.github.com/repos/mojadita/weechat/languages","stargazers_url":"https://api.github.com/repos/mojadita/weechat/stargazers","contributors_url":"https://api.github.com/repos/mojadita/weechat/contributors","subscribers_url":"https://api.github.com/repos/mojadita/weechat/subscribers","subscription_url":"https://api.github.com/repos/mojadita/weechat/subscription","commits_url":"https://api.github.com/repos/mojadita/weechat/commits{/sha}","git_commits_url":"https://api.github.com/repos/mojadita/weechat/git/commits{/sha}","comments_url":"https://api.github.com/repos/mojadita/weechat/comments{/number}","issue_comment_url":"https://api.github.com/repos/mojadita/weechat/issues/comments{/number}","contents_url":"https://api.github.com/repos/mojadita/weechat/contents/{+path}","compare_url":"https://api.github.com/repos/mojadita/weechat/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mojadita/weechat/merges","archive_url":"https://api.github.com/repos/mojadita/weechat/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mojadita/weechat/downloads","issues_url":"https://api.github.com/repos/mojadita/weechat/issues{/number}","pulls_url":"https://api.github.com/repos/mojadita/weechat/pulls{/number}","milestones_url":"https://api.github.com/repos/mojadita/weechat/milestones{/number}","notifications_url":"https://api.github.com/repos/mojadita/weechat/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mojadita/weechat/labels{/name}","releases_url":"https://api.github.com/repos/mojadita/weechat/releases{/id}","created_at":"2016-01-06T18:38:19Z","updated_at":"2016-01-18T12:59:55Z","pushed_at":"2016-01-20T06:03:32Z","git_url":"git://github.com/mojadita/weechat.git","ssh_url":"git@github.com:mojadita/weechat.git","clone_url":"https://github.com/mojadita/weechat.git","svn_url":"https://github.com/mojadita/weechat","homepage":"https://weechat.org/","size":110935,"stargazers_count":1,"watchers_count":1,"language":"C","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":1,"default_branch":"master"}},"base":{"label":"weechat:master","ref":"master","sha":"0bdf1484917f3f546faa609355f9d9a5113747e0","user":{"login":"weechat","id":6746046,"avatar_url":"https://avatars.githubusercontent.com/u/6746046?v=3","gravatar_id":"","url":"https://api.github.com/users/weechat","html_url":"https://github.com/weechat","followers_url":"https://api.github.com/users/weechat/followers","following_url":"https://api.github.com/users/weechat/following{/other_user}","gists_url":"https://api.github.com/users/weechat/gists{/gist_id}","starred_url":"https://api.github.com/users/weechat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/weechat/subscriptions","organizations_url":"https://api.github.com/users/weechat/orgs","repos_url":"https://api.github.com/users/weechat/repos","events_url":"https://api.github.com/users/weechat/events{/privacy}","received_events_url":"https://api.github.com/users/weechat/received_events","type":"Organization","site_admin":false},"repo":{"id":17359210,"name":"weechat","full_name":"weechat/weechat","owner":{"login":"weechat","id":6746046,"avatar_url":"https://avatars.githubusercontent.com/u/6746046?v=3","gravatar_id":"","url":"https://api.github.com/users/weechat","html_url":"https://github.com/weechat","followers_url":"https://api.github.com/users/weechat/followers","following_url":"https://api.github.com/users/weechat/following{/other_user}","gists_url":"https://api.github.com/users/weechat/gists{/gist_id}","starred_url":"https://api.github.com/users/weechat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/weechat/subscriptions","organizations_url":"https://api.github.com/users/weechat/orgs","repos_url":"https://api.github.com/users/weechat/repos","events_url":"https://api.github.com/users/weechat/events{/privacy}","received_events_url":"https://api.github.com/users/weechat/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/weechat/weechat","description":"The extensible chat client.","fork":false,"url":"https://api.github.com/repos/weechat/weechat","forks_url":"https://api.github.com/repos/weechat/weechat/forks","keys_url":"https://api.github.com/repos/weechat/weechat/keys{/key_id}","collaborators_url":"https://api.github.com/repos/weechat/weechat/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/weechat/weechat/teams","hooks_url":"https://api.github.com/repos/weechat/weechat/hooks","issue_events_url":"https://api.github.com/repos/weechat/weechat/issues/events{/number}","events_url":"https://api.github.com/repos/weechat/weechat/events","assignees_url":"https://api.github.com/repos/weechat/weechat/assignees{/user}","branches_url":"https://api.github.com/repos/weechat/weechat/branches{/branch}","tags_url":"https://api.github.com/repos/weechat/weechat/tags","blobs_url":"https://api.github.com/repos/weechat/weechat/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/weechat/weechat/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/weechat/weechat/git/refs{/sha}","trees_url":"https://api.github.com/repos/weechat/weechat/git/trees{/sha}","statuses_url":"https://api.github.com/repos/weechat/weechat/statuses/{sha}","languages_url":"https://api.github.com/repos/weechat/weechat/languages","stargazers_url":"https://api.github.com/repos/weechat/weechat/stargazers","contributors_url":"https://api.github.com/repos/weechat/weechat/contributors","subscribers_url":"https://api.github.com/repos/weechat/weechat/subscribers","subscription_url":"https://api.github.com/repos/weechat/weechat/subscription","commits_url":"https://api.github.com/repos/weechat/weechat/commits{/sha}","git_commits_url":"https://api.github.com/repos/weechat/weechat/git/commits{/sha}","comments_url":"https://api.github.com/repos/weechat/weechat/comments{/number}","issue_comment_url":"https://api.github.com/repos/weechat/weechat/issues/comments{/number}","contents_url":"https://api.github.com/repos/weechat/weechat/contents/{+path}","compare_url":"https://api.github.com/repos/weechat/weechat/compare/{base}...{head}","merges_url":"https://api.github.com/repos/weechat/weechat/merges","archive_url":"https://api.github.com/repos/weechat/weechat/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/weechat/weechat/downloads","issues_url":"https://api.github.com/repos/weechat/weechat/issues{/number}","pulls_url":"https://api.github.com/repos/weechat/weechat/pulls{/number}","milestones_url":"https://api.github.com/repos/weechat/weechat/milestones{/number}","notifications_url":"https://api.github.com/repos/weechat/weechat/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/weechat/weechat/labels{/name}","releases_url":"https://api.github.com/repos/weechat/weechat/releases{/id}","created_at":"2014-03-03T08:08:02Z","updated_at":"2016-01-18T17:00:17Z","pushed_at":"2016-01-19T16:27:07Z","git_url":"git://github.com/weechat/weechat.git","ssh_url":"git@github.com:weechat/weechat.git","clone_url":"https://github.com/weechat/weechat.git","svn_url":"https://github.com/weechat/weechat","homepage":"https://weechat.org/","size":111078,"stargazers_count":612,"watchers_count":612,"language":"C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":93,"mirror_url":null,"open_issues_count":259,"forks":93,"open_issues":259,"watchers":612,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/weechat/weechat/pulls/661"},"html":{"href":"https://github.com/weechat/weechat/pull/661"},"issue":{"href":"https://api.github.com/repos/weechat/weechat/issues/661"},"comments":{"href":"https://api.github.com/repos/weechat/weechat/issues/661/comments"},"review_comments":{"href":"https://api.github.com/repos/weechat/weechat/pulls/661/comments"},"review_comment":{"href":"https://api.github.com/repos/weechat/weechat/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/weechat/weechat/pulls/661/commits"},"statuses":{"href":"https://api.github.com/repos/weechat/weechat/statuses/5308308f4f1346734792b1fb9d94ec89983113c8"}}}}