mirror of https://github.com/Mikaela/Limnoria.git
MessageParser: added configurable separator for the list command.
This commit is contained in:
parent
29837e94b1
commit
2c37d3e6a7
|
@ -64,5 +64,8 @@ conf.registerChannelValue(MessageParser, 'requireManageCapability',
|
|||
channel-level capabilities.
|
||||
Note that absence of an explicit anticapability means user has
|
||||
capability."""))
|
||||
conf.registerChannelValue(MessageParser, 'listSeparator',
|
||||
registry.String(', ', """Determines the separator used between rexeps when
|
||||
shown by the list command."""))
|
||||
|
||||
# vim:set shiftwidth=4 tabstop=4 expandtab textwidth=79:
|
||||
|
|
|
@ -368,7 +368,8 @@ class MessageParser(callbacks.Plugin, plugins.ChannelDBHandler):
|
|||
return
|
||||
|
||||
s = [ "\"%s\" (%d)" % (regexp[0], regexp[1]) for regexp in regexps ]
|
||||
irc.reply(', '.join(s))
|
||||
separator = self.registryValue('listSeparator', channel)
|
||||
irc.reply(separator.join(s))
|
||||
list = wrap(list, ['channel'])
|
||||
|
||||
def rank(self, irc, msg, args, channel):
|
||||
|
|
Loading…
Reference in New Issue