Fixed legacy code

Fixes #492
Merge branch 'master' of https://github.com/venomous0x/WhatsAPI