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)
|
self.reply(s, **kwargs)
|
||||||
|
|
||||||
def replies(self, L, prefixer=''.join,
|
def replies(self, L, prefixer=''.join,
|
||||||
joiner=utils.commaAndify, onlyPrefixFirst=False):
|
joiner=utils.commaAndify, onlyPrefixFirst=False, **kwargs):
|
||||||
if prefixer is None:
|
if prefixer is None:
|
||||||
prefixer = ''
|
prefixer = ''
|
||||||
if joiner is None:
|
if joiner is None:
|
||||||
@ -341,18 +341,18 @@ class RichReplyMethods(object):
|
|||||||
if isinstance(joiner, basestring):
|
if isinstance(joiner, basestring):
|
||||||
joiner = joiner.join
|
joiner = joiner.join
|
||||||
if conf.supybot.reply.oneToOne():
|
if conf.supybot.reply.oneToOne():
|
||||||
self.reply(prefixer(joiner(L)))
|
self.reply(prefixer(joiner(L)), **kwargs)
|
||||||
else:
|
else:
|
||||||
first = True
|
first = True
|
||||||
for s in L:
|
for s in L:
|
||||||
if onlyPrefixFirst:
|
if onlyPrefixFirst:
|
||||||
if first:
|
if first:
|
||||||
self.reply(prefixer(s))
|
self.reply(prefixer(s), **kwargs)
|
||||||
first = False
|
first = False
|
||||||
else:
|
else:
|
||||||
self.reply(s)
|
self.reply(s, **kwargs)
|
||||||
else:
|
else:
|
||||||
self.reply(prefixer(s))
|
self.reply(prefixer(s), **kwargs)
|
||||||
|
|
||||||
def errorNoCapability(self, capability, s='', **kwargs):
|
def errorNoCapability(self, capability, s='', **kwargs):
|
||||||
if isinstance(capability, basestring): # checkCommandCapability!
|
if isinstance(capability, basestring): # checkCommandCapability!
|
||||||
|
Loading…
Reference in New Issue
Block a user