mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-26 03:54:08 +01:00
Web: Remove leading space if the prefix is empty.
This commit is contained in:
parent
143cd9d506
commit
dc2068deca
@ -225,7 +225,10 @@ class Web(callbacks.PluginRegexp):
|
|||||||
channel, network)
|
channel, network)
|
||||||
else url)
|
else url)
|
||||||
prefix = self.registryValue('snarferPrefix', channel, network)
|
prefix = self.registryValue('snarferPrefix', channel, network)
|
||||||
|
if prefix:
|
||||||
s = "%s %s" % (prefix, title)
|
s = "%s %s" % (prefix, title)
|
||||||
|
else:
|
||||||
|
s = title
|
||||||
if self.registryValue('snarferShowDomain', channel, network):
|
if self.registryValue('snarferShowDomain', channel, network):
|
||||||
s += format(_(' (at %s)'), domain)
|
s += format(_(' (at %s)'), domain)
|
||||||
irc.reply(s, prefixNick=False)
|
irc.reply(s, prefixNick=False)
|
||||||
|
Loading…
Reference in New Issue
Block a user