Bugfix for Shame.

This commit is contained in:
Jeremy Fincher 2004-04-15 06:36:34 +00:00
parent 7556219aa8
commit 227738f78e
2 changed files with 2 additions and 0 deletions

View File

@ -172,6 +172,7 @@ class Filter(callbacks.Privmsg):
text = privmsgs.getArgs(args) text = privmsgs.getArgs(args)
text = text.replace('sh', 'th') text = text.replace('sh', 'th')
text = text.replace('SH', 'TH') text = text.replace('SH', 'TH')
text = text.replace('Sh', 'Th')
text = text.replace('ss', 'th') text = text.replace('ss', 'th')
text = text.replace('SS', 'TH') text = text.replace('SS', 'TH')
text = text.replace('s', 'th') text = text.replace('s', 'th')

View File

@ -52,6 +52,7 @@ class FilterTest(ChannelPluginTestCase, PluginDocumentation):
def testLithp(self): def testLithp(self):
self.assertResponse('lithp jamessan', 'jamethan') self.assertResponse('lithp jamessan', 'jamethan')
self.assertResponse('lithp Shame', 'Thame')
def testMorse(self): def testMorse(self):
self.assertResponse('unmorse [morse jemfinch]', 'JEMFINCH') self.assertResponse('unmorse [morse jemfinch]', 'JEMFINCH')