mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-11 04:32:36 +01:00
Revert "Utilities: Add @concat command": already in Format.
This reverts commit 75f9917f86
.
This commit is contained in:
parent
75f9917f86
commit
247ed460b0
@ -67,15 +67,6 @@ class Utilities(callbacks.Plugin):
|
|||||||
irc.replySuccess(text)
|
irc.replySuccess(text)
|
||||||
success = wrap(success, [additional('text')])
|
success = wrap(success, [additional('text')])
|
||||||
|
|
||||||
@internationalizeDocstring
|
|
||||||
def concat(self, irc, msg, args, things):
|
|
||||||
"""<arg> [<arg> ...]
|
|
||||||
|
|
||||||
Concatenates all arguments.
|
|
||||||
"""
|
|
||||||
irc.reply(''.join(things))
|
|
||||||
concat = wrap(concat, [many('anything')])
|
|
||||||
|
|
||||||
@internationalizeDocstring
|
@internationalizeDocstring
|
||||||
def last(self, irc, msg, args):
|
def last(self, irc, msg, args):
|
||||||
"""<text> [<text> ...]
|
"""<text> [<text> ...]
|
||||||
|
@ -39,11 +39,6 @@ class UtilitiesTestCase(PluginTestCase):
|
|||||||
self.assertNotError('success 1')
|
self.assertNotError('success 1')
|
||||||
self.assertError('success [re m/foo bar]')
|
self.assertError('success [re m/foo bar]')
|
||||||
|
|
||||||
def testConcat(self):
|
|
||||||
self.assertResponse('concat foo bar', 'foobar')
|
|
||||||
self.assertResponse('concat [echo foo] [echo bar]', 'foobar')
|
|
||||||
self.assertResponse('concat "foo bar"', 'foo bar')
|
|
||||||
|
|
||||||
def testLast(self):
|
def testLast(self):
|
||||||
self.assertResponse('utilities last foo bar baz', 'baz')
|
self.assertResponse('utilities last foo bar baz', 'baz')
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user