diff --git a/DiscordNotifications/DiscordNotificationsCore.php b/DiscordNotifications/DiscordNotificationsCore.php index 9d431aa..3550627 100644 --- a/DiscordNotifications/DiscordNotificationsCore.php +++ b/DiscordNotifications/DiscordNotificationsCore.php @@ -216,7 +216,7 @@ static function discord_new_user_account($user, $byEmail) $realname = ""; $ipaddress = ""; try { $email = $user->getEmail(); } catch (Exception $e) {} - try { $realname = $user->getEmail(); } catch (Exception $e) {} + try { $realname = $user->getName(); } catch (Exception $e) {} try { $ipaddress = $user->getRequest()->getIP(); } catch (Exception $e) {} $message = sprintf(