target = nick
if public == 0:
if random.random() <= 0.1:
- trout_msg+= ' (at the instigation of %s)' % nick
+ trout_msg+= ' (but %s is their secret admirer)' % nick
conn.action(self.channel, trout_msg % target)
except IndexError:
conn.notice(nick, "Who do you wish me to flirt with?")
self.trouts = [l.strip() for l in f.readlines() if l.find("%s") != -1]
f.close()
f = open("flirts", "r")
- self.trouts = [l.strip() for l in f.readlines() if l.find("%s") != -1]
+ self.flirts = [l.strip() for l in f.readlines() if l.find("%s") != -1]
conn.notice(nick, "I am re-armed!")
except IOError:
conn.notice(nick, "Trout re-arming failed!")