X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~matthewv/git?p=irc.git;a=blobdiff_plain;f=acrobat-chiark-0.2.py;h=bcc25dcd664b7ec8f86649befca594bfab786212;hp=5ee0fd80ab30360b0ede6d8d1ec793a525716143;hb=ef3808a66e5f4f7eba36bb8781d8425420fe1daa;hpb=2cb5194745e337c5e97c82a9df15e8704949ec99 diff --git a/acrobat-chiark-0.2.py b/acrobat-chiark-0.2.py index 5ee0fd8..bcc25dc 100755 --- a/acrobat-chiark-0.2.py +++ b/acrobat-chiark-0.2.py @@ -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!")