mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-02-17 06:00:42 +01:00
Remove racist 'azn' command from Filter plugin
This commit is contained in:
parent
e9b8dddbb6
commit
b8f1e09079
@ -80,7 +80,7 @@ class Filter(callbacks.Plugin):
|
|||||||
_filterCommands = ['jeffk', 'leet', 'rot13', 'hexlify', 'binary', 'lithp',
|
_filterCommands = ['jeffk', 'leet', 'rot13', 'hexlify', 'binary', 'lithp',
|
||||||
'scramble', 'morse', 'reverse', 'colorize', 'squish',
|
'scramble', 'morse', 'reverse', 'colorize', 'squish',
|
||||||
'supa1337', 'colorstrip', 'aol', 'rainbow', 'spellit',
|
'supa1337', 'colorstrip', 'aol', 'rainbow', 'spellit',
|
||||||
'hebrew', 'undup', 'gnu', 'shrink', 'azn', 'uniud']
|
'hebrew', 'undup', 'gnu', 'shrink', 'uniud']
|
||||||
@internationalizeDocstring
|
@internationalizeDocstring
|
||||||
def outfilter(self, irc, msg, args, channel, command):
|
def outfilter(self, irc, msg, args, channel, command):
|
||||||
"""[<channel>] [<command>]
|
"""[<channel>] [<command>]
|
||||||
@ -672,16 +672,6 @@ class Filter(callbacks.Plugin):
|
|||||||
irc.reply(text)
|
irc.reply(text)
|
||||||
shrink = wrap(shrink, ['text'])
|
shrink = wrap(shrink, ['text'])
|
||||||
|
|
||||||
_azn_trans = utils.str.MultipleReplacer(dict(list(zip('rlRL', 'lrLR'))))
|
|
||||||
@internationalizeDocstring
|
|
||||||
def azn(self, irc, msg, args, text):
|
|
||||||
"""<text>
|
|
||||||
|
|
||||||
Returns <text> with the l's made into r's and r's made into l's.
|
|
||||||
"""
|
|
||||||
text = self._azn_trans(text)
|
|
||||||
irc.reply(text)
|
|
||||||
azn = wrap(azn, ['text'])
|
|
||||||
|
|
||||||
# TODO: 2,4,;
|
# TODO: 2,4,;
|
||||||
# XXX suckiest: B,K,P,Q,T
|
# XXX suckiest: B,K,P,Q,T
|
||||||
|
Loading…
x
Reference in New Issue
Block a user