Prevent adding own host to host list

This commit is contained in:
Stone_Red
2023-12-13 12:23:35 +01:00
parent a5983e427c
commit b009d1ac64
3 changed files with 25 additions and 2 deletions
@@ -155,7 +155,14 @@ public class HostCommands
newHosts++;
}
ApiManager.SendNotificationMessageNewLine($"Success! Added {newHosts} new host(s).", NotificationMessageType.Success);
if (newHosts > 0)
{
ApiManager.SendNotificationMessageNewLine($"Added {newHosts} new host(s).", NotificationMessageType.Success);
}
else
{
ApiManager.SendNotificationMessageNewLine($"No new hosts added.", NotificationMessageType.Warning);
}
}
else
{