Skip to content

Commit

Permalink
Prevent Multiple Records for Same Admin
Browse files Browse the repository at this point in the history
- Fixes logical error in the sam_addadmin command when checking if an existing admin record is present
  • Loading branch information
data-bomb committed Jul 27, 2024
1 parent accbdfb commit e350db5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Si_AdminMod/HostActions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public static bool AddAdmin(Player player, String powerText, byte level)
}

// check if we have a match before adding more details
if (AdminMethods.FindAdminFromSteamId(playerSteamId) == null)
if (AdminMethods.FindAdminFromSteamId(playerSteamId) != null)
{
return false;
}
Expand Down
2 changes: 1 addition & 1 deletion Si_AdminMod/ModAttributes.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ You should have received a copy of the GNU General Public License
using SilicaAdminMod;
using System.Drawing;

[assembly: MelonInfo(typeof(SiAdminMod), "Admin Mod", "2.0.925", "databomb", "https://github.com/data-bomb/Silica")]
[assembly: MelonInfo(typeof(SiAdminMod), "Admin Mod", "2.0.929", "databomb", "https://github.com/data-bomb/Silica")]
[assembly: MelonGame("Bohemia Interactive", "Silica")]

// Color.Cyan
Expand Down

0 comments on commit e350db5

Please sign in to comment.