diff --git a/modules/web_hook.cc b/modules/web_hook.cc
index 4dbface43..57337fdb4 100644
--- a/modules/web_hook.cc
+++ b/modules/web_hook.cc
@@ -936,17 +936,14 @@ github_handle__organization(std::ostream &out,
split(action, '_')
};
- out
- << " "
- << ""
- << action_words.first;
+ out << " " << "";
if(action_words.second)
out
- << " "
- << split(action, '_').second;
+ << split(action, '_').second
+ << " ";
- out << "";
+ out << action_words.first << "";
if(action == "member_added")
{
@@ -988,6 +985,24 @@ github_handle__organization(std::ostream &out,
<< ""
;
}
+ else if(action == "member_invited")
+ {
+ const json::object &invitation
+ {
+ content["invitation"]
+ };
+
+ const json::object &user
+ {
+ invitation["user"]
+ };
+
+ out << " "
+ << ""
+ << json::string(user["login"])
+ << ""
+ ;
+ }
return true;
}