Don't send notifications to inactive users

This pull request fixes issue #90 where notifications were being sent to users who are inactive.