chiark / gitweb /
correct typo (missing : )
authorMatthew Vernon <matthewv@chiark.greenend.org.uk>
Tue, 21 Aug 2018 15:47:07 +0000 (16:47 +0100)
committerMatthew Vernon <matthewv@chiark.greenend.org.uk>
Tue, 21 Aug 2018 15:47:07 +0000 (16:47 +0100)
commands.py

index fbffa9f..5a7cc94 100755 (executable)
@@ -578,7 +578,7 @@ def getTweet(urlstring,twitapi,inclusion=False,recurlvl=0):
 
         if expand_included_tweets:
             if rv.hostname == 'twitter.com' and re.search(r'status/\d+',rv.path):
-                if recurlvl > 2
+                if recurlvl > 2:
                   stringsout = [ "{{ Recursion level too high }}" ] + stringsout
                 else:
                   quotedtweet = getTweet(toReplace, twitapi, inclusion=True, recurlvl=recurlvl+1) # inclusion parameter limits recursion.