def filter(self, senderID, text): if isCurrentPlayer(senderID): return text return g_dnDictionary.searchAndReplace(text)