Exemplo n.º 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)
Exemplo n.º 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)
Exemplo n.º 3
0
 def answerMatches(self, answer):
     return Message.answerMatches(self, answer) and self.isQuestion
Exemplo n.º 4
0
 def answerMatches(self, answer):
     return Message.answerMatches(self, answer) and self.isQuestion