From ae549575e4de3cd43814323ebc3d927d6b2a5d49 Mon Sep 17 00:00:00 2001 From: jesopo Date: Sat, 19 Oct 2019 18:58:29 +0100 Subject: still show url when shortening is turned off --- modules/git_webhooks/__init__.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'modules/git_webhooks/__init__.py') diff --git a/modules/git_webhooks/__init__.py b/modules/git_webhooks/__init__.py index bdce810f..fb0899c6 100644 --- a/modules/git_webhooks/__init__.py +++ b/modules/git_webhooks/__init__.py @@ -124,10 +124,11 @@ class Module(ModuleManager.BaseModule): output = "(%s) %s" % ( utils.irc.color(source, colors.COLOR_REPO), output) - if url and channel.get_setting("git-shorten-urls", False): - shorturl = self.exports.get_one("shorturl")(server, url, - context=channel) or url - output = "%s - %s" % (output, shorturl) + if url: + if channel.get_setting("git-shorten-urls", False): + url = self.exports.get_one("shorturl")(server, url, + context=channel) or url + output = "%s - %s" % (output, url) if channel.get_setting("git-prevent-highlight", False): output = self._prevent_highlight(server, channel, -- cgit v1.3.1-10-gc9f91