From 42d20674bb1e269a8a161142a8e91c36d99d5fe4 Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Fri, 28 Mar 2003 06:57:48 +0000 Subject: [PATCH] Changed lithp command to change Xes too. --- plugins/FunCommands.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/plugins/FunCommands.py b/plugins/FunCommands.py index 49b1b8c1d..a42d14a37 100644 --- a/plugins/FunCommands.py +++ b/plugins/FunCommands.py @@ -244,7 +244,11 @@ class FunCommands(callbacks.Privmsg): def lithp(self, irc, msg, args): "" text = privmsgs.getArgs(args) - irc.reply(msg, text.replace('s', 'th').replace('S', 'TH')) + text = text.replace('s', 'th') + text = text.replace('S', 'TH') + text = text.replace('x', 'kth') + text = text.replace('X', 'KTH') + irc.reply(msg, text) _leettrans = string.maketrans('oOaAeElBTiIts', '004433187!1+5') _leetres = ((re.compile(r'\b(?:(?:[yY][o0O][oO0uU])|u)\b'), 'j00'),