mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-29 06:02:38 +01:00
Bold instead of repr if things are to be bolded.
This commit is contained in:
parent
c2399ec881
commit
6c24a3e4f5
@ -364,7 +364,11 @@ class Google(callbacks.PrivmsgCommandAndRegexp):
|
||||
results.append((data.meta.estimatedTotalResultsCount, arg))
|
||||
results.sort()
|
||||
results.reverse()
|
||||
s = ', '.join(['%r: %s' % (s, i) for (i, s) in results])
|
||||
if self.registryValue(bold, msg.args[0]):
|
||||
format = ircutils.bold
|
||||
else:
|
||||
format = repr
|
||||
s = ', '.join(['%s: %s' % (format(s), i) for (i, s) in results])
|
||||
irc.reply(s)
|
||||
|
||||
def spell(self, irc, msg, args):
|
||||
|
Loading…
Reference in New Issue
Block a user