Slightly change format of commit messages in modules/github.py

This commit is contained in:
jesopo 2018-10-06 16:44:39 +01:00
parent 9458d9fee2
commit 0cf7deed24

View file

@ -29,9 +29,9 @@ class Module(ModuleManager.BaseModule):
added_count = len(commit["added"])
removed_count = len(commit["removed"])
line = ("(%s) [files: %d/%d/%d mod/add/del] commit by %s: "
"'%s'") % (full_name, modified_count, added_count,
removed_count, author, message)
line = ("(%s) [files: %d/%d/%d mod/add/del] commit by '%s': %s"
% (full_name, modified_count, added_count,
removed_count, author, message))
hooks = self.bot.database.channel_settings.find_by_setting(
"github-hook")
hooks = [hook for hook in hooks if hook[2]]