Add support for new WhatsApp log syntax

Also simplified one method a little bit.

Let me know if there is any problems.