mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-10-04 18:38:39 +02:00
Changed lithp command to be case-insensitive
This commit is contained in:
parent
c0804180b4
commit
c85b3bc052
@ -244,7 +244,7 @@ class FunCommands(callbacks.Privmsg):
|
|||||||
def lithp(self, irc, msg, args):
|
def lithp(self, irc, msg, args):
|
||||||
"<text>"
|
"<text>"
|
||||||
text = privmsgs.getArgs(args)
|
text = privmsgs.getArgs(args)
|
||||||
irc.reply(msg, text.replace('s', 'th'))
|
irc.reply(msg, text.replace('s', 'th').replace('S', 'TH'))
|
||||||
|
|
||||||
_leettrans = string.maketrans('oOaAeElBTiIts', '004433187!1+5')
|
_leettrans = string.maketrans('oOaAeElBTiIts', '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