Skip to content

Commit

Permalink
irc controllers should default to superop not nobody permission level
Browse files Browse the repository at this point in the history
  • Loading branch information
UnknownShadow200 committed Feb 26, 2021
1 parent fff3c50 commit 0eeff1f
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion GUI/PropertyWindow/PropertyWindow.IRCSql.cs
Expand Up @@ -64,7 +64,7 @@ public partial class PropertyWindow : Form {
Server.Config.IRCShowWorldChanges = irc_cbWorldChanges.Checked;
Server.Config.IRCShowAFK = irc_cbAFK.Checked;

Server.Config.IRCControllerRank = GuiPerms.GetPermission(irc_cmbRank, LevelPermission.Nobody);
Server.Config.IRCControllerRank = GuiPerms.GetPermission(irc_cmbRank, LevelPermission.Admin);
Server.Config.IRCVerify = (IRCControllerVerify)irc_cmbVerify.SelectedIndex;
Server.Config.IRCCommandPrefix = irc_txtPrefix.Text;

Expand Down
2 changes: 1 addition & 1 deletion GUI/Window/Window.Players.cs
Expand Up @@ -51,7 +51,7 @@ public partial class Window : Form {
string cmdName = args[0], cmdArgs = args.Length > 1 ? args[1] : "";

CommandData data = default(CommandData);
data.Rank = LevelPermission.Nobody;
data.Rank = LevelPermission.Nobody;
data.Context = CommandContext.SendCmd;
curPlayer.HandleCommand(cmdName, cmdArgs, data);

Expand Down
7 changes: 4 additions & 3 deletions MCGalaxy/Generator/HeightmapGen.cs
Expand Up @@ -26,10 +26,11 @@
namespace MCGalaxy.Generator {
public static class HeightmapGen {

static void OnDecodeError(Player p, Bitmap bmp) {
if (bmp != null) bmp.Dispose();
static void OnDecodeError(Player p, Bitmap bmp) {
if (bmp != null) bmp.Dispose();
// TODO failed to decode the image. make sure you are using the URL of the image directly, not just the webpage it is hosted on
p.Message("&WThere was an error reading the downloaded image.");
p.Message("&WThe url may need to end with its extension (such as .jpg).");
p.Message("&WThe url may need to end with its extension (such as .jpg).");
}

public static Bitmap DecodeImage(byte[] data, Player p) {
Expand Down
4 changes: 2 additions & 2 deletions MCGalaxy/Server/ServerConfig.cs
Expand Up @@ -190,8 +190,8 @@ public sealed class ServerConfig : EnvConfig {
public string IRCCommandPrefix = ".x";
[ConfigEnum("irc-controller-verify", "IRC bot", IRCControllerVerify.HalfOp, typeof(IRCControllerVerify))]
public IRCControllerVerify IRCVerify = IRCControllerVerify.HalfOp;
[ConfigPerm("irc-controller-rank", "IRC bot", LevelPermission.Nobody)]
public LevelPermission IRCControllerRank = LevelPermission.Nobody;
[ConfigPerm("irc-controller-rank", "IRC bot", LevelPermission.Admin)]
public LevelPermission IRCControllerRank = LevelPermission.Admin;

[ConfigBool("tablist-rank-sorted", "Tablist", true)]
public bool TablistRankSorted = true;
Expand Down

0 comments on commit 0eeff1f

Please sign in to comment.