chiark / gitweb /
remove trout by popular request
[irc.git] / acrobat-chiark-0.2.py
index 5ee0fd80ab30360b0ede6d8d1ec793a525716143..bcc25dcd664b7ec8f86649befca594bfab786212 100755 (executable)
@@ -190,7 +190,7 @@ class Acrobat(SingleServerIRCBot):
                     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?")
@@ -233,7 +233,7 @@ class Acrobat(SingleServerIRCBot):
                 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!")