mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 11:09:23 +01:00
Change the id format. Remove the quotes.
This commit is contained in:
parent
92824116c5
commit
7c0428dfcc
@ -404,7 +404,7 @@ class MessageParser(callbacks.Plugin, plugins.ChannelDBHandler):
|
||||
irc.reply(_('There are no regexp triggers in the database.'))
|
||||
return
|
||||
|
||||
s = [ "(%d) \"%s\"" % (regexp[1], regexp[0]) for regexp in regexps ]
|
||||
s = [ "#%d: %s" % (regexp[1], regexp[0]) for regexp in regexps ]
|
||||
separator = self.registryValue('listSeparator', channel)
|
||||
irc.reply(separator.join(s))
|
||||
list = wrap(list, ['channelOrGlobal'])
|
||||
|
@ -133,9 +133,9 @@ class MessageParserTestCase(ChannelPluginTestCase):
|
||||
self.assertRegexp('messageparser list',
|
||||
'There are no regexp triggers in the database\.')
|
||||
self.assertNotError('messageparser add "stuff" "echo i saw some stuff"')
|
||||
self.assertRegexp('messageparser list', '\(1\) "stuff"')
|
||||
self.assertRegexp('messageparser list', '#1: stuff')
|
||||
self.assertNotError('messageparser add "aoeu" "echo vowels are nice!"')
|
||||
self.assertRegexp('messageparser list', '\(1\) "stuff", \(2\) "aoeu"')
|
||||
self.assertRegexp('messageparser list', '#1: stuff, #2: aoeu')
|
||||
|
||||
def testRemove(self):
|
||||
self.assertError('messageparser remove "stuff"')
|
||||
|
Loading…
Reference in New Issue
Block a user