mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 19:19:32 +01:00
Merge pull request #879 from Erika-Mustermann/patch-1
Remove abelist 'lithp' command from Filter plugin
This commit is contained in:
commit
e70efa1489
@ -77,7 +77,7 @@ class Filter(callbacks.Plugin):
|
|||||||
msg = ircmsgs.IrcMsg(msg=msg, args=(msg.args[0], s))
|
msg = ircmsgs.IrcMsg(msg=msg, args=(msg.args[0], s))
|
||||||
return msg
|
return msg
|
||||||
|
|
||||||
_filterCommands = ['jeffk', 'leet', 'rot13', 'hexlify', 'binary', 'lithp',
|
_filterCommands = ['jeffk', 'leet', 'rot13', 'hexlify', 'binary',
|
||||||
'scramble', 'morse', 'reverse', 'colorize', 'squish',
|
'scramble', 'morse', 'reverse', 'colorize', 'squish',
|
||||||
'supa1337', 'colorstrip', 'aol', 'rainbow', 'spellit',
|
'supa1337', 'colorstrip', 'aol', 'rainbow', 'spellit',
|
||||||
'hebrew', 'undup', 'gnu', 'shrink', 'uniud']
|
'hebrew', 'undup', 'gnu', 'shrink', 'uniud']
|
||||||
@ -227,30 +227,6 @@ class Filter(callbacks.Plugin):
|
|||||||
irc.reply(self._rot13_encoder(text)[0])
|
irc.reply(self._rot13_encoder(text)[0])
|
||||||
rot13 = wrap(rot13, ['text'])
|
rot13 = wrap(rot13, ['text'])
|
||||||
|
|
||||||
@internationalizeDocstring
|
|
||||||
def lithp(self, irc, msg, args, text):
|
|
||||||
"""<text>
|
|
||||||
|
|
||||||
Returns the lisping version of <text>
|
|
||||||
"""
|
|
||||||
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('s', 'th')
|
|
||||||
text = text.replace('z', 'th')
|
|
||||||
text = text.replace('S', 'Th')
|
|
||||||
text = text.replace('Z', 'Th')
|
|
||||||
text = text.replace('x', 'kth')
|
|
||||||
text = text.replace('X', 'KTH')
|
|
||||||
text = text.replace('cce', 'kth')
|
|
||||||
text = text.replace('CCE', 'KTH')
|
|
||||||
text = text.replace('tion', 'thion')
|
|
||||||
text = text.replace('TION', 'THION')
|
|
||||||
irc.reply(text)
|
|
||||||
lithp = wrap(lithp, ['text'])
|
|
||||||
|
|
||||||
_leettrans = utils.str.MultipleReplacer(dict(list(zip('oOaAeElBTiIts',
|
_leettrans = utils.str.MultipleReplacer(dict(list(zip('oOaAeElBTiIts',
|
||||||
'004433187!1+5'))))
|
'004433187!1+5'))))
|
||||||
_leetres = [(re.compile(r'\b(?:(?:[yY][o0O][oO0uU])|u)\b'), 'j00'),
|
_leetres = [(re.compile(r'\b(?:(?:[yY][o0O][oO0uU])|u)\b'), 'j00'),
|
||||||
|
Loading…
Reference in New Issue
Block a user