still show url when shortening is turned off

This commit is contained in:
jesopo 2019-10-19 18:58:29 +01:00
parent 4cce0bb54e
commit ae549575e4

View file

@ -124,10 +124,11 @@ 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 url and channel.get_setting("git-shorten-urls", False): if url:
shorturl = self.exports.get_one("shorturl")(server, url, if channel.get_setting("git-shorten-urls", False):
url = self.exports.get_one("shorturl")(server, url,
context=channel) or url context=channel) or url
output = "%s - %s" % (output, shorturl) output = "%s - %s" % (output, url)
if channel.get_setting("git-prevent-highlight", False): if channel.get_setting("git-prevent-highlight", False):
output = self._prevent_highlight(server, channel, output = self._prevent_highlight(server, channel,