diff --git a/plugins/String/plugin.py b/plugins/String/plugin.py index a5931481d..98da36863 100644 --- a/plugins/String/plugin.py +++ b/plugins/String/plugin.py @@ -108,7 +108,7 @@ class String(callbacks.Plugin): irc.reply(utils.str.soundex(text, length)) soundex = wrap(soundex, ['somethingWithoutSpaces', additional('int', 4)]) - def strlen(self, irc, msg, args): + def len(self, irc, msg, args): """ Returns the length of . diff --git a/plugins/String/test.py b/plugins/String/test.py index cb7a35633..e31dbb201 100644 --- a/plugins/String/test.py +++ b/plugins/String/test.py @@ -75,6 +75,9 @@ def group(seq, groupSize, noneFill=True): class StringTestCase(PluginTestCase): plugins = ('String', 'Format', 'Status') + def testLen(self): + self.assertResponse('len foo', '3') + def testNoErrors(self): self.assertNotError('levenshtein Python Perl')