Misc fixes

Add CVE snarfer
Malone -> Launchpad rename
This commit is contained in:
Dennis Kaarsemaker
2007-06-08 20:16:37 +02:00
parent 10022b2a42
commit d218ddad74
8 changed files with 71 additions and 25 deletions

View File

@ -60,6 +60,7 @@ class Lart(plugins.ChannelIdDatabasePlugin):
(target, reason) = map(str.strip, text.split(' for ', 1))
else:
(target, reason) = (text, '')
print target
if id is not None:
try:
lart = self.db.get(channel, id)
@ -74,8 +75,8 @@ class Lart(plugins.ChannelIdDatabasePlugin):
return
text = self._replaceFirstPerson(lart.text, msg.nick)
if ircutils.strEqual(target, irc.nick) or \
'ubotu' in target.lower() or 'ubugtu' in target.lower() or \
'seveas' in target.lower() or \
'ubotu' in ircutils.stripFormatting(target).lower() or \
'seveas' in ircutils.stripFormatting(target).lower() or \
((not msg.prefix.endswith('seveas')) and random.uniform(0,100) < 25):
target = msg.nick
reason = ''