From bdde326079d5103aee8cc331309ae5e0b3b931b3 Mon Sep 17 00:00:00 2001 From: matthew Date: Wed, 6 Feb 2002 20:40:47 +0000 Subject: [PATCH] More idiomatic version of the above change --- acrobat-chiark-0.2.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/acrobat-chiark-0.2.py b/acrobat-chiark-0.2.py index 6cb3bfd..965c96c 100755 --- a/acrobat-chiark-0.2.py +++ b/acrobat-chiark-0.2.py @@ -182,9 +182,7 @@ class Acrobat(SingleServerIRCBot): target = nick if public == 0: if random.random() <= 0.25: - trout_msg+= ' (at the instigation of ' - trout_msg+=nick - trout_msg+= ')' + trout_msg+= ' (at the instigation of %s)' % nick conn.action(self.channel, trout_msg % target) except IndexError: conn.notice(nick, "Who do you wish me to trout?") -- 2.30.2