Better handling of mentioned nicks

Don't use parts of emails, remove duplicate mentions.