use data["pusher"]["name"] as data["author"]["login"] doesn't exist (github)

This commit is contained in:
jesopo 2019-01-19 08:00:31 +00:00
parent 8c1b40e785
commit 202991a268

View file

@ -355,7 +355,7 @@ class Module(ModuleManager.BaseModule):
for commit in data["commits"]:
id = self._short_hash(commit["id"])
message = commit["message"].split("\n")[0].strip()
author = utils.irc.bold(commit["author"]["login"])
author = utils.irc.bold(commit["pusher"]["name"])
url = self._short_url(COMMIT_URL % (full_name, id))
added = self._added(len(commit["added"]))