Minor change in formatting of Http module and foldoc command.

This commit is contained in:
Jeremy Fincher 2003-03-12 15:12:49 +00:00
parent 7801c84d84
commit c4a577c9c2
2 changed files with 2 additions and 2 deletions

View File

@ -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):
"<word>"

View File

@ -131,7 +131,7 @@ class Http(callbacks.Privmsg):
except Exception, e:
irc.error(msg, debug.exnToString(e))
text = html.split('<P>\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())