MessageParser: added configurable separator for the list command.

This commit is contained in:
quantumlemur 2010-08-19 18:55:03 -04:00 committed by Daniel F
parent 29837e94b1
commit 2c37d3e6a7
2 changed files with 5 additions and 1 deletions

View File

@ -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:

View File

@ -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):