diff --git a/plugins/Format/plugin.py b/plugins/Format/plugin.py index ebe42c407..6dc16a2cb 100644 --- a/plugins/Format/plugin.py +++ b/plugins/Format/plugin.py @@ -97,7 +97,7 @@ class Format(callbacks.Plugin): with in . """ irc.reply(text.replace(bad, good)) - replace = wrap(replace, ['something', 'something', 'text']) + replace = wrap(replace, ['something', 'anything', 'text']) def upper(self, irc, msg, args, text): """ diff --git a/plugins/Format/test.py b/plugins/Format/test.py index f891e0dd7..3ed19470e 100644 --- a/plugins/Format/test.py +++ b/plugins/Format/test.py @@ -58,6 +58,7 @@ class FormatTestCase(PluginTestCase): def testReplace(self): self.assertResponse('replace # %23 bla#foo', 'bla%23foo') + self.assertResponse('replace foo "" blafoobar', 'blabar') def testUpper(self): self.assertResponse('upper foo', 'FOO')