chiark / gitweb /
url observations: Rename `urlcomplaints' variable to `urlinfos'
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Thu, 25 Oct 2018 16:26:14 +0000 (17:26 +0100)
committerMatthew Vernon <matthewv@chiark.greenend.org.uk>
Wed, 7 Nov 2018 19:20:19 +0000 (19:20 +0000)
These are no longer complaints.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
Conflicts:
commands.py

commands.py

index cdc776caa06f11e2788fb0e758a878ab696efa03..6f5a4fb0fb659bfec794348f7f93444306ad9671 100755 (executable)
@@ -401,18 +401,18 @@ class UrlLog:
     def firstmen(self):
         return nicetime(time.time()-self.first)
     def urltype(self):
     def firstmen(self):
         return nicetime(time.time()-self.first)
     def urltype(self):
-        z=min(len(urlcomplaints)-1, self.count-1)
-        return urlcomplaints[z]
+        z=min(len(urlinfos)-1, self.count-1)
+        return urlinfos[z]
 
 #(?:) is a regexp that doesn't group        
 urlre = re.compile(r"((?:(?:http)|(?:nsfw))s?://[^ ]+)( |$)")
 hturlre= re.compile(r"(http)(s?://[^ ]+)( |$)")
 #matches \bre\:?\s+ before a regexp; (?i)==case insensitive match
 shibboleth = re.compile(r"(?i)\bre\:?\s+((?:(?:http)|(?:nsfw))s?://[^ ]+)( |$)")
 
 #(?:) is a regexp that doesn't group        
 urlre = re.compile(r"((?:(?:http)|(?:nsfw))s?://[^ ]+)( |$)")
 hturlre= re.compile(r"(http)(s?://[^ ]+)( |$)")
 #matches \bre\:?\s+ before a regexp; (?i)==case insensitive match
 shibboleth = re.compile(r"(?i)\bre\:?\s+((?:(?:http)|(?:nsfw))s?://[^ ]+)( |$)")
-urlcomplaints = ["a new",
-                 "a fascinating",
-                 "an interesting",
-                 "a popular"]
+urlinfos = ["a new",
+            "a fascinating",
+            "an interesting",
+            "a popular"]
 
 ### Deal with /msg bot url or ~url in channel
 def urlq(bot, cmd, nick, conn, public,urldb):
 
 ### Deal with /msg bot url or ~url in channel
 def urlq(bot, cmd, nick, conn, public,urldb):