Web: Remove leading space if the prefix is empty.

This commit is contained in:
Valentin Lorentz 2019-12-15 17:26:47 +01:00
parent 143cd9d506
commit dc2068deca

View File

@ -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)