Changed me handling in lart.

This commit is contained in:
Jeremy Fincher 2003-06-18 06:45:21 +00:00
parent 5c0ae0ecbf
commit e689904c90

View File

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