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