Merge pull request #312 from examknow/patch-6
Move highlight prevention before urls
This commit is contained in:
commit
7b1ad1e8ad
1 changed files with 4 additions and 4 deletions
|
@ -136,16 +136,16 @@ class Module(ModuleManager.BaseModule):
|
||||||
output = "(%s) %s" % (
|
output = "(%s) %s" % (
|
||||||
utils.irc.color(source, colors.COLOR_REPO), output)
|
utils.irc.color(source, colors.COLOR_REPO), output)
|
||||||
|
|
||||||
|
if channel.get_setting("git-prevent-highlight", False):
|
||||||
|
output = self._prevent_highlight(server, channel,
|
||||||
|
output)
|
||||||
|
|
||||||
if url:
|
if url:
|
||||||
if channel.get_setting("git-shorten-urls", False):
|
if channel.get_setting("git-shorten-urls", False):
|
||||||
url = self.exports.get("shorturl")(server, url,
|
url = self.exports.get("shorturl")(server, url,
|
||||||
context=channel) or url
|
context=channel) or url
|
||||||
output = "%s - %s" % (output, url)
|
output = "%s - %s" % (output, url)
|
||||||
|
|
||||||
if channel.get_setting("git-prevent-highlight", False):
|
|
||||||
output = self._prevent_highlight(server, channel,
|
|
||||||
output)
|
|
||||||
|
|
||||||
hide_prefix = channel.get_setting("git-hide-prefix", False)
|
hide_prefix = channel.get_setting("git-hide-prefix", False)
|
||||||
self.events.on("send.stdout").call(target=channel,
|
self.events.on("send.stdout").call(target=channel,
|
||||||
module_name=webhook_name, server=server, message=output,
|
module_name=webhook_name, server=server, message=output,
|
||||||
|
|
Loading…
Reference in a new issue