From 2c37d3e6a794a18a63f0a293d0b8a363c562d4df Mon Sep 17 00:00:00 2001 From: quantumlemur Date: Thu, 19 Aug 2010 18:55:03 -0400 Subject: [PATCH] MessageParser: added configurable separator for the list command. --- plugins/MessageParser/config.py | 3 +++ plugins/MessageParser/plugin.py | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/plugins/MessageParser/config.py b/plugins/MessageParser/config.py index 456feb023..f70dbdb24 100644 --- a/plugins/MessageParser/config.py +++ b/plugins/MessageParser/config.py @@ -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: diff --git a/plugins/MessageParser/plugin.py b/plugins/MessageParser/plugin.py index 7995e1677..62d8e9dad 100644 --- a/plugins/MessageParser/plugin.py +++ b/plugins/MessageParser/plugin.py @@ -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):