jmshal/meloooncensor

Optimise ClassicFilter violatesPolicy method

Closed this issue · 0 comments

Right now, the classic filter runs the censorMessage method in its entirety, but it only needs check all the words until one of them matches the blacklist.