From c4a577c9c2fb9bb8d4f743b3dca6618d8bc1d3ae Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Wed, 12 Mar 2003 15:12:49 +0000 Subject: [PATCH] Minor change in formatting of Http module and foldoc command. --- plugins/BadWords.py | 2 +- plugins/Http.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/BadWords.py b/plugins/BadWords.py index 241ce63bb..6f126fea4 100644 --- a/plugins/BadWords.py +++ b/plugins/BadWords.py @@ -52,7 +52,7 @@ class BadWords(callbacks.Privmsg): return msg def makeRegexp(self): - self.regexp = re.compile('|'.join(self.badwords), re.I) + self.regexp = re.compile(r'\b(?:'+'|'.join(self.badwords)+r')\b', re.I) def addbadword(self, irc, msg, args): "" diff --git a/plugins/Http.py b/plugins/Http.py index 70fdd5cbf..299114e1b 100644 --- a/plugins/Http.py +++ b/plugins/Http.py @@ -131,7 +131,7 @@ class Http(callbacks.Privmsg): except Exception, e: irc.error(msg, debug.exnToString(e)) text = html.split('

\n', 2)[1] - text = text.replace('.\n', ' ') + text = text.replace('.\n', '. ') text = text.replace('\n', ' ') text = self._html.sub('', text) irc.reply(msg, text.strip())