mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-11 04:32:36 +01:00
Gave replies the **kwargs.
This commit is contained in:
parent
0982ee2638
commit
2022839a96
@ -331,7 +331,7 @@ class RichReplyMethods(object):
|
||||
self.reply(s, **kwargs)
|
||||
|
||||
def replies(self, L, prefixer=''.join,
|
||||
joiner=utils.commaAndify, onlyPrefixFirst=False):
|
||||
joiner=utils.commaAndify, onlyPrefixFirst=False, **kwargs):
|
||||
if prefixer is None:
|
||||
prefixer = ''
|
||||
if joiner is None:
|
||||
@ -341,18 +341,18 @@ class RichReplyMethods(object):
|
||||
if isinstance(joiner, basestring):
|
||||
joiner = joiner.join
|
||||
if conf.supybot.reply.oneToOne():
|
||||
self.reply(prefixer(joiner(L)))
|
||||
self.reply(prefixer(joiner(L)), **kwargs)
|
||||
else:
|
||||
first = True
|
||||
for s in L:
|
||||
if onlyPrefixFirst:
|
||||
if first:
|
||||
self.reply(prefixer(s))
|
||||
self.reply(prefixer(s), **kwargs)
|
||||
first = False
|
||||
else:
|
||||
self.reply(s)
|
||||
self.reply(s, **kwargs)
|
||||
else:
|
||||
self.reply(prefixer(s))
|
||||
self.reply(prefixer(s), **kwargs)
|
||||
|
||||
def errorNoCapability(self, capability, s='', **kwargs):
|
||||
if isinstance(capability, basestring): # checkCommandCapability!
|
||||
|
Loading…
Reference in New Issue
Block a user