From dc2068deca353d1cec29b1e4e5857b7d5dcc1595 Mon Sep 17 00:00:00 2001 From: Valentin Lorentz Date: Sun, 15 Dec 2019 17:26:47 +0100 Subject: [PATCH] Web: Remove leading space if the prefix is empty. --- plugins/Web/plugin.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/plugins/Web/plugin.py b/plugins/Web/plugin.py index 3a4e7cc13..31cd4ee3e 100644 --- a/plugins/Web/plugin.py +++ b/plugins/Web/plugin.py @@ -225,7 +225,10 @@ class Web(callbacks.PluginRegexp): channel, network) else url) prefix = self.registryValue('snarferPrefix', channel, network) - s = "%s %s" % (prefix, title) + if prefix: + s = "%s %s" % (prefix, title) + else: + s = title if self.registryValue('snarferShowDomain', channel, network): s += format(_(' (at %s)'), domain) irc.reply(s, prefixNick=False)