GitHub PullRequestReviewCommentEvent at 2014-04-03 13:36:24
Repository: Tempuscode
Actor: dlowe-net
Payload: {"comment":{"url":"https://api.github.com/repos/TempusMUD/Tempuscode/pulls/comments/11251221","id":11251221,"diff_hunk":"@@ -3440,16 +3440,36 @@ struct creature *\n \n ASPELL(spell_calm)\n {\n-    if (!victim) {\n-        send_to_char(ch, \"Something that shouldn't have \"\n-            \"happened just did.\\r\\n\");\n-        errlog(\"NULL victim in spell_calm()\");\n-        return;\n+      struct room_affect_data rm_aff;\n+\n+    if ROOM_FLAGGED(ch->in_room, ROOM_PEACEFUL) {\n+        send_to_char(ch, \"It's already rather peaceful here.\\r\\n\");\n+    return;\n+    } else {\n+    for (GList *it = first_living(ch->in_room->people);it;it = next_living(it)) {\n+        struct creature *tch = it->data;\n+\n+        remove_all_combat(tch);\n     }\n \n-    remove_all_combat(victim);\n+    send_to_char(ch, \"Your prayer covers the area in a holy peace.\\r\\n\");\n+    act(\"$n's prayer overwhelms the area with a divine peace.\", false, ch, NULL, NULL, TO_ROOM);\n \n-    return;\n+    rm_aff.description =\n+        strdup\n+        (\" A sacred calm permeates the air.\\r\\n\");","path":"src/magic/spells.c","position":28,"original_position":28,"commit_id":"f3df95f0f1be7fd0cd2bfc5e816ac8c15eae3bdd","original_commit_id":"f3df95f0f1be7fd0cd2bfc5e816ac8c15eae3bdd","user":{"login":"dlowe-net","id":188363,"avatar_url":"https://avatars.githubusercontent.com/u/188363?","gravatar_id":"4461d1efcbffe644dfa5bef07072e156","url":"https://api.github.com/users/dlowe-net","html_url":"https://github.com/dlowe-net","followers_url":"https://api.github.com/users/dlowe-net/followers","following_url":"https://api.github.com/users/dlowe-net/following{/other_user}","gists_url":"https://api.github.com/users/dlowe-net/gists{/gist_id}","starred_url":"https://api.github.com/users/dlowe-net/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dlowe-net/subscriptions","organizations_url":"https://api.github.com/users/dlowe-net/orgs","repos_url":"https://api.github.com/users/dlowe-net/repos","events_url":"https://api.github.com/users/dlowe-net/events{/privacy}","received_events_url":"https://api.github.com/users/dlowe-net/received_events","type":"User","site_admin":false},"body":"Move this to all one line.","created_at":"2014-04-03T13:36:24Z","updated_at":"2014-04-03T13:36:24Z","html_url":"https://github.com/TempusMUD/Tempuscode/pull/282#discussion_r11251221","pull_request_url":"https://api.github.com/repos/TempusMUD/Tempuscode/pulls/282","_links":{"self":{"href":"https://api.github.com/repos/TempusMUD/Tempuscode/pulls/comments/11251221"},"html":{"href":"https://github.com/TempusMUD/Tempuscode/pull/282#discussion_r11251221"},"pull_request":{"href":"https://api.github.com/repos/TempusMUD/Tempuscode/pulls/282"}}}}