Corrected notification function

No longer relies on a gamemode function, fixes #64
Merge pull request #94 from MuteTM/patch-1

Corrected notification function