ragaeeb / autoblock

Automatically exported from code.google.com/p/autoblock
2 stars 0 forks source link

If messages come in before the app is initialized they are automatically deleted #239

Closed ragaeeb closed 8 years ago

ragaeeb commented 8 years ago

Critical bug when keyword threshold is not initialized, it remains at 0:

The following code: if ( result.size() >= m_options.threshold ) { LOGGER("KeywordSpamMatched!"); spamDetected(m); ........ }

Passes, since 0 >= 0, and thus the message is deleted.

Bug Report: 35104_1451692115.zip

ragaeeb commented 8 years ago

8339ad0d5c27f423c19a287e12f83b812a43bc71

ragaeeb commented 8 years ago

1be955b419bebab7fe8d7f213dd14560b0b0829a