chiark / gitweb /
urlcomplaints is an array not a function
[irc.git] / commands.py
index 8dd8e595c650baabf9d8da4051a99a11f06f0995..fb35d4f075bd19b2168b1ff511f610ffb19f488f 100644 (file)
@@ -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"]