16 lines · python
1import sys2 3InterestingBBs = 04input = open(sys.argv[1], "r")5for line in input:6 i = line.find(";")7 if i >= 0:8 line = line[:i]9 if line.startswith("interesting") or "%interesting" in line:10 InterestingBBs += 111 12if InterestingBBs == 6:13 sys.exit(0) # interesting!14 15sys.exit(1) # IR isn't interesting16