From fe2d7e443ca6e9444664d01d0216e530dc7a941d Mon Sep 17 00:00:00 2001 From: Lucas Nicodemus Date: Sat, 30 Jul 2011 16:58:36 -0600 Subject: [PATCH] Implemented default registration groups --- TShockAPI/Commands.cs | 2 +- TShockAPI/ConfigFile.cs | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/TShockAPI/Commands.cs b/TShockAPI/Commands.cs index 4c0d6b73..06d1fdfc 100644 --- a/TShockAPI/Commands.cs +++ b/TShockAPI/Commands.cs @@ -382,7 +382,7 @@ namespace TShockAPI var user = new User(); user.Name = args.Parameters[0].ToLower(); user.Password = args.Parameters[1]; - user.Group = "default"; // FIXME -- we should get this from the DB. + user.Group = TShock.Config.DefaultRegistrationGroupName; // FIXME -- we should get this from the DB. if (TShock.Users.GetUserByName(user.Name) == null) // Cheap way of checking for existance of a user { diff --git a/TShockAPI/ConfigFile.cs b/TShockAPI/ConfigFile.cs index dc36f700..7c004b91 100644 --- a/TShockAPI/ConfigFile.cs +++ b/TShockAPI/ConfigFile.cs @@ -100,6 +100,8 @@ namespace TShockAPI public bool EnableAntiLag = true; + public string DefaultRegistrationGroupName = "default"; + /// /// Valid types are "sha512", "sha256", "md5" ///