mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-24 19:52:54 +01:00
Minor change in formatting of Http module and foldoc command.
This commit is contained in:
parent
7801c84d84
commit
c4a577c9c2
@ -52,7 +52,7 @@ class BadWords(callbacks.Privmsg):
|
|||||||
return msg
|
return msg
|
||||||
|
|
||||||
def makeRegexp(self):
|
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):
|
def addbadword(self, irc, msg, args):
|
||||||
"<word>"
|
"<word>"
|
||||||
|
@ -131,7 +131,7 @@ class Http(callbacks.Privmsg):
|
|||||||
except Exception, e:
|
except Exception, e:
|
||||||
irc.error(msg, debug.exnToString(e))
|
irc.error(msg, debug.exnToString(e))
|
||||||
text = html.split('<P>\n', 2)[1]
|
text = html.split('<P>\n', 2)[1]
|
||||||
text = text.replace('.\n', ' ')
|
text = text.replace('.\n', '. ')
|
||||||
text = text.replace('\n', ' ')
|
text = text.replace('\n', ' ')
|
||||||
text = self._html.sub('', text)
|
text = self._html.sub('', text)
|
||||||
irc.reply(msg, text.strip())
|
irc.reply(msg, text.strip())
|
||||||
|
Loading…
Reference in New Issue
Block a user