package com.forgeessentials.chat.commands;

import com.forgeessentials.chat.irc.IRCHelper;
import com.forgeessentials.core.commands.ForgeEssentialsCommandBase;
import net.minecraft.command.ICommandSender;
import net.minecraftforge.permissions.PermissionsManager.RegisteredPermValue;

public class CommandIRC extends ForgeEssentialsCommandBase {

    @Override
    public String getCommandName()
    {
        return "irc";
    }

    @Override
    public void processCommand(ICommandSender sender, String[] args)
    {
        if (args[0].equalsIgnoreCase("reconnect"))
        {
            IRCHelper.reconnect(sender);
        }
        else if (args[0].equalsIgnoreCase("disconnect"))
        {
            IRCHelper.shutdown();
        }
        else if (args[0].equalsIgnoreCase("staus"))
        {
            IRCHelper.status(sender);
        }
    }

    @Override
    public boolean canConsoleUseCommand()
    {
        return true;
    }

    @Override
    public String getPermissionNode()
    {
        return "fe.chat.irc";
    }

    @Override
    public String getCommandUsage(ICommandSender sender)
    {
        return "/irc [reconnect|disconnect|status] Connect or disconnect the IRC server bot.";
    }

    @Override
    public RegisteredPermValue getDefaultPermission()
    {

        return RegisteredPermValue.OP;
    }

}

@@ -153,16 +153,63 @@
 ndBase;%0A
+import com.forgeessentials.util.OutputHandler;%0A
 import n
@@ -798,47 +798,8 @@
 else
- if (args%5B0%5D.equalsIgnoreCase(%22staus%22))
 %0A   

Remove /irc status - now just doing /irc gets you the same thing.