Added spam prevention to quote finding and fixed a bug in it.

Spam prevention stops at maxMessages number, 5 atm.
Bug was "or" instead of "and" at line 257.