Beispiel #1
0
 def answerMatches(self, answer):
     """does the answer match this message?"""
     if self.encoded.startswith('PSMODE:CINEMA'):
         return answer.encoded.startswith('MS') and answer.encoded.endswith('C')
     elif self.encoded.startswith('PSMODE:MUSIC'):
         return answer.encoded.startswith('MS') and answer.encoded.endswith('M')
     else:
         return Message.answerMatches(self, answer)
Beispiel #2
0
 def answerMatches(self, answer):
     """does the answer match this message?"""
     if self.encoded.startswith('PSMODE:CINEMA'):
         return answer.encoded.startswith('MS') and answer.encoded.endswith(
             'C')
     elif self.encoded.startswith('PSMODE:MUSIC'):
         return answer.encoded.startswith('MS') and answer.encoded.endswith(
             'M')
     else:
         return Message.answerMatches(self, answer)
Beispiel #3
0
 def answerMatches(self, answer):
     return Message.answerMatches(self, answer) and self.isQuestion
Beispiel #4
0
 def answerMatches(self, answer):
     return Message.answerMatches(self, answer) and self.isQuestion