IRC bot auth doesn't work with LDAP authentication

After testings and IRC conversation,

When LibreNMS is setup with $config[‘auth_mechanism’] = “ldap”; IRC bot authentication doesn’t work as LibreNMS doesn’t know the email tied to a specific user.