{"action":"created","comment":{"url":"https://api.github.com/repos/svof/svof/pulls/comments/70958254","id":70958254,"diff_hunk":"@@ -256,6 +259,101 @@ signals.gmcpiretimeupdate:connect(function()\n   end\n end)\n \n+signals.gmcpcharafflictionslist = luanotify.signal.new()\n+signals.gmcpcharafflictionsremove = luanotify.signal.new()\n+signals.gmcpcharafflictionsadd = luanotify.signal.new()\n+\n+signals.gmcpchardefenceslist = luanotify.signal.new()\n+signals.gmcpchardefencesremove = luanotify.signal.new()\n+signals.gmcpchardefencesadd = luanotify.signal.new()\n+\n+\n+signals.gmcpcharafflictionsadd:connect(function()\n+  local thisaff = gmcp.Char.Afflictions.Add.name\n+  if thisaff:sub(-4) == \" (1)\" then thisaff = thisaff:sub(1, -5) end\n+  gaffl[thisaff] = true\n+  if conf.gmcpaffechoes then echof(\"Gained aff %s\", thisaff) end\n+  if dict.sstosvoa[thisaff] then\n+    addaff(dict[dict.sstosvoa[thisaff]])\n+  end\n+end)\n+\n+signals.gmcpcharafflictionsremove:connect(function()\n+  local thisaff = gmcp.Char.Afflictions.Remove[1]\n+  gaffl[thisaff] = nil\n+  if conf.gmcpdefechoes then echof(\"Cured aff %s\", thisaff) end\n+  if dict.sstosvoa[thisaff] then\n+    removeaff(dict.sstosvoa[thisaff])\n+  end\n+end)\n+\n+signals.gmcpcharafflictionslist:connect(function()\n+  gaffl = {}\n+  local preaffl = {}\n+  for key, val in ipairs(affl) do preaffl[val] = true end\n+  \n+  for index, val in ipairs(gmcp.Char.Afflictions.List) do\n+    local thisaff = val.name\n+    if thisaff:sub(-4) == \" (1)\" then thisaff = thisaff:sub(1, -5) end  \n+    gaffl[thisaff] = true\n+    if preaffl[thisaff] then\n+      preaffl[thisaff] = false\n+    elseif dict.sstosvoa[thisaff] then\n+      addaff(dict[dict.sstosvoa[thisaff]])\n+    end\n+  end\n+  \n+  for key, val in pairs(preaffl) do\n+    if val and dict.svotossa[thisaff] then removeaff(key) end\n+  end\n+end)\n+\n+\n+signals.gmcpchardefencesadd:connect(function()\n+  thisdef = gmcp.Char.Defences.Add.name\n+  gdefc[thisdef] = true\n+  if conf.gmcpdefechoes then echof(\"Gained def \"..thisdef) end\n+  if dict.sstosvod[thisdef] then\n+    defs[\"got_\"..dict.sstosvod[thisdef]]()\n+  end\n+end)\n+\n+signals.gmcpchardefencesremove:connect(function()\n+  thisdef = gmcp.Char.Defences.Remove[1]\n+  gdefc[thisdef] = nil\n+  if conf.gmcpdefechoes then echof(\"Lost def \"..thisdef) end\n+  if dict.sstosvod[thisdef] then\n+    defs[\"lost_\"..dict.sstosvod[thisdef]]()\n+  end\n+end)\n+\n+signals.gmcpchardefenceslist:connect(function()\n+  gdefc = {}\n+  local predefs = table.deepcopy(defc)","path":"raw-svo.setup.lua","position":84,"original_position":84,"commit_id":"5225dc662c61953ed94f3cc41589bf3b6b8b990c","original_commit_id":"5225dc662c61953ed94f3cc41589bf3b6b8b990c","user":{"login":"keneanung","id":1056269,"avatar_url":"https://avatars.githubusercontent.com/u/1056269?v=3","gravatar_id":"","url":"https://api.github.com/users/keneanung","html_url":"https://github.com/keneanung","followers_url":"https://api.github.com/users/keneanung/followers","following_url":"https://api.github.com/users/keneanung/following{/other_user}","gists_url":"https://api.github.com/users/keneanung/gists{/gist_id}","starred_url":"https://api.github.com/users/keneanung/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/keneanung/subscriptions","organizations_url":"https://api.github.com/users/keneanung/orgs","repos_url":"https://api.github.com/users/keneanung/repos","events_url":"https://api.github.com/users/keneanung/events{/privacy}","received_events_url":"https://api.github.com/users/keneanung/received_events","type":"User","site_admin":false},"body":"careful about `table.deepcopy`. Mudlet 2.1 doesn't have that yet, but svof supplies a local `deepcopy` function.","created_at":"2016-07-15T11:28:47Z","updated_at":"2016-07-15T11:28:47Z","html_url":"https://github.com/svof/svof/pull/209#discussion_r70958254","pull_request_url":"https://api.github.com/repos/svof/svof/pulls/209","_links":{"self":{"href":"https://api.github.com/repos/svof/svof/pulls/comments/70958254"},"html":{"href":"https://github.com/svof/svof/pull/209#discussion_r70958254"},"pull_request":{"href":"https://api.github.com/repos/svof/svof/pulls/209"}}},"pull_request":{"url":"https://api.github.com/repos/svof/svof/pulls/209","id":77553667,"html_url":"https://github.com/svof/svof/pull/209","diff_url":"https://github.com/svof/svof/pull/209.diff","patch_url":"https://github.com/svof/svof/pull/209.patch","issue_url":"https://api.github.com/repos/svof/svof/issues/209","number":209,"state":"open","locked":false,"title":"GMCP Affliction and Defense Tracking","user":{"login":"jgh713","id":18177789,"avatar_url":"https://avatars.githubusercontent.com/u/18177789?v=3","gravatar_id":"","url":"https://api.github.com/users/jgh713","html_url":"https://github.com/jgh713","followers_url":"https://api.github.com/users/jgh713/followers","following_url":"https://api.github.com/users/jgh713/following{/other_user}","gists_url":"https://api.github.com/users/jgh713/gists{/gist_id}","starred_url":"https://api.github.com/users/jgh713/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jgh713/subscriptions","organizations_url":"https://api.github.com/users/jgh713/orgs","repos_url":"https://api.github.com/users/jgh713/repos","events_url":"https://api.github.com/users/jgh713/events{/privacy}","received_events_url":"https://api.github.com/users/jgh713/received_events","type":"User","site_admin":false},"body":"Bleepbloop.\r\n\r\nAs far as I could tell, I didn't break anything. I can't promise things will remain that way.\r\n\r\nAnd as I wrote that sentence, I just realized a relatively sizeable fuck-up. Pushing fix soon.","created_at":"2016-07-15T02:05:27Z","updated_at":"2016-07-15T11:28:47Z","closed_at":null,"merged_at":null,"merge_commit_sha":"29f2cedbf341b77f97f226b1de379dd0c6f8c8f0","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/svof/svof/pulls/209/commits","review_comments_url":"https://api.github.com/repos/svof/svof/pulls/209/comments","review_comment_url":"https://api.github.com/repos/svof/svof/pulls/comments{/number}","comments_url":"https://api.github.com/repos/svof/svof/issues/209/comments","statuses_url":"https://api.github.com/repos/svof/svof/statuses/5225dc662c61953ed94f3cc41589bf3b6b8b990c","head":{"label":"jgh713:patch-6","ref":"patch-6","sha":"5225dc662c61953ed94f3cc41589bf3b6b8b990c","user":{"login":"jgh713","id":18177789,"avatar_url":"https://avatars.githubusercontent.com/u/18177789?v=3","gravatar_id":"","url":"https://api.github.com/users/jgh713","html_url":"https://github.com/jgh713","followers_url":"https://api.github.com/users/jgh713/followers","following_url":"https://api.github.com/users/jgh713/following{/other_user}","gists_url":"https://api.github.com/users/jgh713/gists{/gist_id}","starred_url":"https://api.github.com/users/jgh713/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jgh713/subscriptions","organizations_url":"https://api.github.com/users/jgh713/orgs","repos_url":"https://api.github.com/users/jgh713/repos","events_url":"https://api.github.com/users/jgh713/events{/privacy}","received_events_url":"https://api.github.com/users/jgh713/received_events","type":"User","site_admin":false},"repo":{"id":60819102,"name":"svof","full_name":"jgh713/svof","owner":{"login":"jgh713","id":18177789,"avatar_url":"https://avatars.githubusercontent.com/u/18177789?v=3","gravatar_id":"","url":"https://api.github.com/users/jgh713","html_url":"https://github.com/jgh713","followers_url":"https://api.github.com/users/jgh713/followers","following_url":"https://api.github.com/users/jgh713/following{/other_user}","gists_url":"https://api.github.com/users/jgh713/gists{/gist_id}","starred_url":"https://api.github.com/users/jgh713/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jgh713/subscriptions","organizations_url":"https://api.github.com/users/jgh713/orgs","repos_url":"https://api.github.com/users/jgh713/repos","events_url":"https://api.github.com/users/jgh713/events{/privacy}","received_events_url":"https://api.github.com/users/jgh713/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jgh713/svof","description":"Svof is an AI system for Achaea, an online MUD. It has advanced and adaptable curing capabilities, defence raising, and addons.","fork":true,"url":"https://api.github.com/repos/jgh713/svof","forks_url":"https://api.github.com/repos/jgh713/svof/forks","keys_url":"https://api.github.com/repos/jgh713/svof/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jgh713/svof/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jgh713/svof/teams","hooks_url":"https://api.github.com/repos/jgh713/svof/hooks","issue_events_url":"https://api.github.com/repos/jgh713/svof/issues/events{/number}","events_url":"https://api.github.com/repos/jgh713/svof/events","assignees_url":"https://api.github.com/repos/jgh713/svof/assignees{/user}","branches_url":"https://api.github.com/repos/jgh713/svof/branches{/branch}","tags_url":"https://api.github.com/repos/jgh713/svof/tags","blobs_url":"https://api.github.com/repos/jgh713/svof/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jgh713/svof/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jgh713/svof/git/refs{/sha}","trees_url":"https://api.github.com/repos/jgh713/svof/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jgh713/svof/statuses/{sha}","languages_url":"https://api.github.com/repos/jgh713/svof/languages","stargazers_url":"https://api.github.com/repos/jgh713/svof/stargazers","contributors_url":"https://api.github.com/repos/jgh713/svof/contributors","subscribers_url":"https://api.github.com/repos/jgh713/svof/subscribers","subscription_url":"https://api.github.com/repos/jgh713/svof/subscription","commits_url":"https://api.github.com/repos/jgh713/svof/commits{/sha}","git_commits_url":"https://api.github.com/repos/jgh713/svof/git/commits{/sha}","comments_url":"https://api.github.com/repos/jgh713/svof/comments{/number}","issue_comment_url":"https://api.github.com/repos/jgh713/svof/issues/comments{/number}","contents_url":"https://api.github.com/repos/jgh713/svof/contents/{+path}","compare_url":"https://api.github.com/repos/jgh713/svof/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jgh713/svof/merges","archive_url":"https://api.github.com/repos/jgh713/svof/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jgh713/svof/downloads","issues_url":"https://api.github.com/repos/jgh713/svof/issues{/number}","pulls_url":"https://api.github.com/repos/jgh713/svof/pulls{/number}","milestones_url":"https://api.github.com/repos/jgh713/svof/milestones{/number}","notifications_url":"https://api.github.com/repos/jgh713/svof/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jgh713/svof/labels{/name}","releases_url":"https://api.github.com/repos/jgh713/svof/releases{/id}","deployments_url":"https://api.github.com/repos/jgh713/svof/deployments","created_at":"2016-06-10T02:12:27Z","updated_at":"2016-06-10T02:12:28Z","pushed_at":"2016-07-15T08:50:42Z","git_url":"git://github.com/jgh713/svof.git","ssh_url":"git@github.com:jgh713/svof.git","clone_url":"https://github.com/jgh713/svof.git","svn_url":"https://github.com/jgh713/svof","homepage":"","size":2974,"stargazers_count":0,"watchers_count":0,"language":"Lua","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":0,"default_branch":"master"}},"base":{"label":"svof:master","ref":"master","sha":"98c96dee529b8a370024bc7fe6d30ff4df661dd4","user":{"login":"svof","id":13921852,"avatar_url":"https://avatars.githubusercontent.com/u/13921852?v=3","gravatar_id":"","url":"https://api.github.com/users/svof","html_url":"https://github.com/svof","followers_url":"https://api.github.com/users/svof/followers","following_url":"https://api.github.com/users/svof/following{/other_user}","gists_url":"https://api.github.com/users/svof/gists{/gist_id}","starred_url":"https://api.github.com/users/svof/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/svof/subscriptions","organizations_url":"https://api.github.com/users/svof/orgs","repos_url":"https://api.github.com/users/svof/repos","events_url":"https://api.github.com/users/svof/events{/privacy}","received_events_url":"https://api.github.com/users/svof/received_events","type":"Organization","site_admin":false},"repo":{"id":41222778,"name":"svof","full_name":"svof/svof","owner":{"login":"svof","id":13921852,"avatar_url":"https://avatars.githubusercontent.com/u/13921852?v=3","gravatar_id":"","url":"https://api.github.com/users/svof","html_url":"https://github.com/svof","followers_url":"https://api.github.com/users/svof/followers","following_url":"https://api.github.com/users/svof/following{/other_user}","gists_url":"https://api.github.com/users/svof/gists{/gist_id}","starred_url":"https://api.github.com/users/svof/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/svof/subscriptions","organizations_url":"https://api.github.com/users/svof/orgs","repos_url":"https://api.github.com/users/svof/repos","events_url":"https://api.github.com/users/svof/events{/privacy}","received_events_url":"https://api.github.com/users/svof/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/svof/svof","description":"Svof is an AI system for Achaea, an online MUD. It has advanced and adaptable curing capabilities, defence raising, and addons.","fork":false,"url":"https://api.github.com/repos/svof/svof","forks_url":"https://api.github.com/repos/svof/svof/forks","keys_url":"https://api.github.com/repos/svof/svof/keys{/key_id}","collaborators_url":"https://api.github.com/repos/svof/svof/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/svof/svof/teams","hooks_url":"https://api.github.com/repos/svof/svof/hooks","issue_events_url":"https://api.github.com/repos/svof/svof/issues/events{/number}","events_url":"https://api.github.com/repos/svof/svof/events","assignees_url":"https://api.github.com/repos/svof/svof/assignees{/user}","branches_url":"https://api.github.com/repos/svof/svof/branches{/branch}","tags_url":"https://api.github.com/repos/svof/svof/tags","blobs_url":"https://api.github.com/repos/svof/svof/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/svof/svof/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/svof/svof/git/refs{/sha}","trees_url":"https://api.github.com/repos/svof/svof/git/trees{/sha}","statuses_url":"https://api.github.com/repos/svof/svof/statuses/{sha}","languages_url":"https://api.github.com/repos/svof/svof/languages","stargazers_url":"https://api.github.com/repos/svof/svof/stargazers","contributors_url":"https://api.github.com/repos/svof/svof/contributors","subscribers_url":"https://api.github.com/repos/svof/svof/subscribers","subscription_url":"https://api.github.com/repos/svof/svof/subscription","commits_url":"https://api.github.com/repos/svof/svof/commits{/sha}","git_commits_url":"https://api.github.com/repos/svof/svof/git/commits{/sha}","comments_url":"https://api.github.com/repos/svof/svof/comments{/number}","issue_comment_url":"https://api.github.com/repos/svof/svof/issues/comments{/number}","contents_url":"https://api.github.com/repos/svof/svof/contents/{+path}","compare_url":"https://api.github.com/repos/svof/svof/compare/{base}...{head}","merges_url":"https://api.github.com/repos/svof/svof/merges","archive_url":"https://api.github.com/repos/svof/svof/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/svof/svof/downloads","issues_url":"https://api.github.com/repos/svof/svof/issues{/number}","pulls_url":"https://api.github.com/repos/svof/svof/pulls{/number}","milestones_url":"https://api.github.com/repos/svof/svof/milestones{/number}","notifications_url":"https://api.github.com/repos/svof/svof/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/svof/svof/labels{/name}","releases_url":"https://api.github.com/repos/svof/svof/releases{/id}","deployments_url":"https://api.github.com/repos/svof/svof/deployments","created_at":"2015-08-22T20:12:53Z","updated_at":"2016-07-01T17:37:26Z","pushed_at":"2016-07-15T08:33:40Z","git_url":"git://github.com/svof/svof.git","ssh_url":"git@github.com:svof/svof.git","clone_url":"https://github.com/svof/svof.git","svn_url":"https://github.com/svof/svof","homepage":"","size":3164,"stargazers_count":21,"watchers_count":21,"language":"Lua","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":23,"mirror_url":null,"open_issues_count":74,"forks":23,"open_issues":74,"watchers":21,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/svof/svof/pulls/209"},"html":{"href":"https://github.com/svof/svof/pull/209"},"issue":{"href":"https://api.github.com/repos/svof/svof/issues/209"},"comments":{"href":"https://api.github.com/repos/svof/svof/issues/209/comments"},"review_comments":{"href":"https://api.github.com/repos/svof/svof/pulls/209/comments"},"review_comment":{"href":"https://api.github.com/repos/svof/svof/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/svof/svof/pulls/209/commits"},"statuses":{"href":"https://api.github.com/repos/svof/svof/statuses/5225dc662c61953ed94f3cc41589bf3b6b8b990c"}}}}
{"actor":{"display_login":"keneanung"}}