Fixed lart code not to lart the bot himself.

This commit is contained in:
Jeremy Fincher 2003-05-16 18:04:46 +00:00
parent 26f185c0e9
commit b633960740

View File

@ -146,7 +146,7 @@ class FunDB(callbacks.Privmsg):
ORDER BY random()
LIMIT 1""")
(id, insult) = cursor.fetchone()
if nick == irc.nick:
if nick.strip() in (irc.nick, 'himself'):
insultee = msg.nick
else:
insultee = nick