Merge pull request #8 from Venom983/patch-1

Disallow OpRules from IRC
This commit is contained in:
Hetal728 2015-08-02 10:11:41 -04:00
commit 5ad6beb086

View File

@ -185,6 +185,7 @@ namespace MCGalaxy {
if (Server.ircControllers.Contains(user.Nick))
{
if (message.Split(' ')[1].Equals("resetbot", StringComparison.OrdinalIgnoreCase) || banCmd.Contains(ircCommand)) { Server.IRC.Say("You cannot use this command from IRC!"); return; }
if (message.Split(' ')[1].Equals("oprules", StringComparison.OrdinalIgnoreCase) || banCmd.Contains(ircCommand)) { Server.IRC.Say("You cannot use this command from IRC!"); return; }
if (Player.CommandHasBadColourCodes(null, message)) { Server.IRC.Say("Your command had invalid color codes!"); return; }
Command cmd = Command.all.Find(message.Split(' ')[1]);