From: Matthew Vernon Date: Fri, 4 Jun 2010 19:37:46 +0000 (+0100) Subject: urlcomplaints is an array not a function X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~matthewv/git?a=commitdiff_plain;h=c40c2b6261e7b251387bf71dde7774eee13fd47b;p=irc.git urlcomplaints is an array not a function --- diff --git a/commands.py b/commands.py index 8dd8e59..fb35d4f 100644 --- a/commands.py +++ b/commands.py @@ -323,7 +323,7 @@ class UrlLog: return nicetime(time.time()-self.first) def urltype(self): z=max(len(urlcomplaints), self.count-1) - return urlcomplaints(z) + return urlcomplaints[z] urlre = re.compile("(https?://[^ ]+)( |$)") urlcomplaints = ["a contemporary","an interesting","a fascinating","an overused","a vastly overused"]