From 1c86e6f40cb78754a8220cbcb78b78b7c9a54b2e Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Wed, 24 Sep 2003 04:19:23 +0000 Subject: [PATCH] Removed shrink command since it's mostly unnecessary since we got the mores. --- plugins/Utilities.py | 17 +---------------- test/test_Utilities.py | 3 --- 2 files changed, 1 insertion(+), 19 deletions(-) diff --git a/plugins/Utilities.py b/plugins/Utilities.py index e85c0af71..85520ad29 100644 --- a/plugins/Utilities.py +++ b/plugins/Utilities.py @@ -47,20 +47,13 @@ def configure(onStart, afterConnect, advanced): example = utils.wrapLines(""" @list Utilities - echo, ignore, re, repr, shrink, strconcat, strjoin, strlen, strlower, strtranslate, strupper + echo, ignore, re, repr, strconcat, strjoin, strlen, strlower, strtranslate, strupper @echo foo bar baz foo bar baz @ignore foo bar baz (he just ignores them; it's useful to run commands in sequence without caring about 'The operation succeeded' responses.) @repr "\n" "\n" - @eval 'x'*1000 - My response would've been too long. - @shrink [eval 'x'*1000] - 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx - (it was shrunken to 400 characters) - @strlen [shrink [eval 'x'*1000]] - 400 @strjoin + foo bar baz foo+bar+baz @strlower FOO BAR BAZ @@ -81,14 +74,6 @@ class Utilities(callbacks.Privmsg): """ pass - def shrink(self, irc, msg, args): - """ - - Shrinks to 400 characters. - """ - text = privmsgs.getArgs(args) - irc.reply(msg, text[:400]) - def strjoin(self, irc, msg, args): """ [ ...] diff --git a/test/test_Utilities.py b/test/test_Utilities.py index f7c4529bd..000208c51 100644 --- a/test/test_Utilities.py +++ b/test/test_Utilities.py @@ -36,9 +36,6 @@ class UtilitiesTestCase(PluginTestCase, PluginDocumentation): def testIgnore(self): self.assertNoResponse('ignore foo bar baz', 1) - def testShrink(self): - self.assertRegexp('shrink %s' % ('x'*1000), 'x'*400) - def testStrjoin(self): self.assertResponse('strjoin + foo bar baz', 'foo+bar+baz')