//# 0 errors, 204 messages
//#
/*
    //#LoggingCommand.java:1:1: class: com.dmdirc.addons.logging.LoggingCommand
    //#LoggingCommand.java:1:1: method: com.dmdirc.addons.logging.LoggingCommand.com.dmdirc.addons.logging.LoggingCommand__static_init
 * Copyright (c) 2006-2009 Chris Smith, Shane Mc Cormack, Gregory Holmes
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 * SOFTWARE.
 */

package com.dmdirc.addons.logging;

import com.dmdirc.Server;
import com.dmdirc.commandparser.CommandArguments;
import com.dmdirc.commandparser.CommandManager;
import com.dmdirc.commandparser.commands.IntelligentCommand;
import com.dmdirc.commandparser.commands.ServerCommand;
import com.dmdirc.plugins.Plugin;
import com.dmdirc.plugins.PluginInfo;
import com.dmdirc.plugins.PluginManager;
import com.dmdirc.ui.input.AdditionalTabTargets;
import com.dmdirc.ui.interfaces.InputWindow;
import java.util.List;

/**
 * The dcop command retrieves information from a dcop application.
 *
 * @author Shane "Dataforce" Mc Cormack
 */
public final class LoggingCommand extends ServerCommand implements IntelligentCommand {

	/**
	 * Creates a new instance of LoggingCommand.
	 */
	public LoggingCommand() {
		super();
    //#LoggingCommand.java:48: method: void com.dmdirc.addons.logging.LoggingCommand.com.dmdirc.addons.logging.LoggingCommand()
    //#LoggingCommand.java:48: Warning: method not available - call not analyzed
    //#    call on void com.dmdirc.commandparser.commands.ServerCommand()
    //#    severity: INFORMATIONAL
    //#    class: com.dmdirc.addons.logging.LoggingCommand
    //#    method: void com.dmdirc.addons.logging.LoggingCommand()
    //#    unanalyzed callee: void com.dmdirc.commandparser.commands.ServerCommand()
    //#input(void com.dmdirc.addons.logging.LoggingCommand()): this
		CommandManager.registerCommand(this);
    //#LoggingCommand.java:49: Warning: method not available - call not analyzed
    //#    call on void com.dmdirc.commandparser.CommandManager:registerCommand(Command)
    //#    severity: INFORMATIONAL
    //#    class: com.dmdirc.addons.logging.LoggingCommand
    //#    method: void com.dmdirc.addons.logging.LoggingCommand()
    //#    unanalyzed callee: void com.dmdirc.commandparser.CommandManager:registerCommand(Command)
	}
    //#LoggingCommand.java:50: end of method: void com.dmdirc.addons.logging.LoggingCommand.com.dmdirc.addons.logging.LoggingCommand()
		
    /** {@inheritDoc} */
    @Override
	public void execute(final InputWindow origin, final Server server,
            final boolean isSilent, final CommandArguments args) {
		final PluginInfo pluginInfo = PluginManager.getPluginManager().getPluginInfoByName("logging");
    //#LoggingCommand.java:56: method: void com.dmdirc.addons.logging.LoggingCommand.execute(InputWindow, Server, bool, CommandArguments)
    //#LoggingCommand.java:56: Warning: method not available - call not analyzed
    //#    call on PluginManager com.dmdirc.plugins.PluginManager:getPluginManager()
    //#    severity: INFORMATIONAL
    //#    class: com.dmdirc.addons.logging.LoggingCommand
    //#    method: void execute(InputWindow, Server, bool, CommandArguments)
    //#    unanalyzed callee: PluginManager com.dmdirc.plugins.PluginManager:getPluginManager()
    //#LoggingCommand.java:56: Warning: method not available - call not analyzed
    //#    call on PluginInfo com.dmdirc.plugins.PluginManager:getPluginInfoByName(String)
    //#    severity: INFORMATIONAL
    //#    class: com.dmdirc.addons.logging.LoggingCommand
    //#    method: void execute(InputWindow, Server, bool, CommandArguments)
    //#    unanalyzed callee: PluginInfo com.dmdirc.plugins.PluginManager:getPluginInfoByName(String)
    //#input(void execute(InputWindow, Server, bool, CommandArguments)): " help             - Show this help."._tainted
    //#input(void execute(InputWindow, Server, bool, CommandArguments)): " help for a list of commands."._tainted
    //#input(void execute(InputWindow, Server, bool, CommandArguments)): " history          - Open the history of this window, if available."._tainted
    //#input(void execute(InputWindow, Server, bool, CommandArguments)): " reload           - Reload the logging plugin."._tainted
    //#input(void execute(InputWindow, Server, bool, CommandArguments)): ""._tainted
    //#input(void execute(InputWindow, Server, bool, CommandArguments)): "'. Use "._tainted
    //#input(void execute(InputWindow, Server, bool, CommandArguments)): ".log"._tainted
    //#input(void execute(InputWindow, Server, bool, CommandArguments)): "Unknown command '"._tainted
    //#input(void execute(InputWindow, Server, bool, CommandArguments)): "Use "._tainted
    //#input(void execute(InputWindow, Server, bool, CommandArguments)): "logging"._tainted
    //#input(void execute(InputWindow, Server, bool, CommandArguments)): "null.log"._tainted
    //#input(void execute(InputWindow, Server, bool, CommandArguments)): args
    //#input(void execute(InputWindow, Server, bool, CommandArguments)): com/dmdirc/addons/logging/LoggingPlugin.__Descendant_Table[com/dmdirc/addons/logging/LoggingPlugin]
    //#input(void execute(InputWindow, Server, bool, CommandArguments)): com/dmdirc/addons/logging/LoggingPlugin.__Descendant_Table[others]
    //#input(void execute(InputWindow, Server, bool, CommandArguments)): com/dmdirc/addons/logging/LoggingPlugin.__Dispatch_Table.addNetworkDir(Ljava/lang/StringBuffer;Ljava/lang/StringBuffer;Ljava/lang/String;)V
    //#input(void execute(InputWindow, Server, bool, CommandArguments)): com/dmdirc/addons/logging/LoggingPlugin.__Dispatch_Table.getLogFile(Ljava/lang/Object;)Ljava/lang/String;
    //#input(void execute(InputWindow, Server, bool, CommandArguments)): com/dmdirc/addons/logging/LoggingPlugin.__Dispatch_Table.showHistory(Lcom/dmdirc/ui/interfaces/InputWindow;)Z
    //#input(void execute(InputWindow, Server, bool, CommandArguments)): com/dmdirc/addons/logging/LoggingPlugin.com.dmdirc.logger.ErrorLevel.LOW
    //#input(void execute(InputWindow, Server, bool, CommandArguments)): com/dmdirc/addons/logging/LoggingPlugin.java.io.File.separatorChar
    //#input(void execute(InputWindow, Server, bool, CommandArguments)): com/dmdirc/addons/logging/ReverseFileReader.__Descendant_Table[com/dmdirc/addons/logging/ReverseFileReader]
    //#input(void execute(InputWindow, Server, bool, CommandArguments)): com/dmdirc/addons/logging/ReverseFileReader.__Descendant_Table[others]
    //#input(void execute(InputWindow, Server, bool, CommandArguments)): com/dmdirc/addons/logging/ReverseFileReader.__Dispatch_Table.getLinesAsString(I)Ljava/lang/String;
    //#input(void execute(InputWindow, Server, bool, CommandArguments)): com/dmdirc/addons/logging/ReverseFileReader.__Dispatch_Table.getNextLine()Ljava/lang/String;
    //#input(void execute(InputWindow, Server, bool, CommandArguments)): com/dmdirc/addons/logging/ReverseFileReader.__Dispatch_Table.reset()V
    //#input(void execute(InputWindow, Server, bool, CommandArguments)): isSilent
    //#input(void execute(InputWindow, Server, bool, CommandArguments)): origin
    //#input(void execute(InputWindow, Server, bool, CommandArguments)): this
    //#pre[1] (void execute(InputWindow, Server, bool, CommandArguments)): (soft) args != null
    //#pre[3] (void execute(InputWindow, Server, bool, CommandArguments)): (soft) origin != null
    //#presumption(void execute(InputWindow, Server, bool, CommandArguments)): com.dmdirc.commandparser.CommandArguments:getArguments(...).length@71 >= 1
    //#presumption(void execute(InputWindow, Server, bool, CommandArguments)): com.dmdirc.commandparser.CommandArguments:getArguments(...).length@77 >= 1
    //#presumption(void execute(InputWindow, Server, bool, CommandArguments)): com.dmdirc.commandparser.CommandArguments:getArguments(...).length@81 >= 1
    //#presumption(void execute(InputWindow, Server, bool, CommandArguments)): com.dmdirc.commandparser.CommandArguments:getArguments(...).length@86 >= 1
    //#presumption(void execute(InputWindow, Server, bool, CommandArguments)): com.dmdirc.commandparser.CommandArguments:getArguments(...)@70 != null
    //#presumption(void execute(InputWindow, Server, bool, CommandArguments)): com.dmdirc.commandparser.CommandArguments:getArguments(...)@71 != null
    //#presumption(void execute(InputWindow, Server, bool, CommandArguments)): com.dmdirc.commandparser.CommandArguments:getArguments(...)@77 != null
    //#presumption(void execute(InputWindow, Server, bool, CommandArguments)): com.dmdirc.commandparser.CommandArguments:getArguments(...)@81 != null
    //#presumption(void execute(InputWindow, Server, bool, CommandArguments)): com.dmdirc.commandparser.CommandArguments:getArguments(...)@86 != null
    //#presumption(void execute(InputWindow, Server, bool, CommandArguments)): com.dmdirc.commandparser.CommandArguments:getArguments(...)[0]@71 != null
    //#presumption(void execute(InputWindow, Server, bool, CommandArguments)): com.dmdirc.commandparser.CommandArguments:getArguments(...)[0]@77 != null
    //#presumption(void execute(InputWindow, Server, bool, CommandArguments)): com.dmdirc.commandparser.CommandArguments:getArguments(...)[0]@81 != null
    //#presumption(void execute(InputWindow, Server, bool, CommandArguments)): com.dmdirc.plugins.PluginManager:getPluginManager(...)@56 != null
    //#presumption(void execute(InputWindow, Server, bool, CommandArguments)): com.dmdirc.plugins.PluginManager:getPluginManager(...)@72 != null
    //#unanalyzed(void execute(InputWindow, Server, bool, CommandArguments)): Effects-of-calling:java.text.SimpleDateFormat
    //#unanalyzed(void execute(InputWindow, Server, bool, CommandArguments)): Effects-of-calling:com.dmdirc.addons.logging.LoggingPlugin:getDomain
    //#unanalyzed(void execute(InputWindow, Server, bool, CommandArguments)): Effects-of-calling:java.lang.StringBuilder
    //#unanalyzed(void execute(InputWindow, Server, bool, CommandArguments)): Effects-of-calling:java.lang.StringBuilder:append
    //#unanalyzed(void execute(InputWindow, Server, bool, CommandArguments)): Effects-of-calling:java.lang.System:getProperty
    //#unanalyzed(void execute(InputWindow, Server, bool, CommandArguments)): Effects-of-calling:java.lang.StringBuilder:toString
    //#unanalyzed(void execute(InputWindow, Server, bool, CommandArguments)): Effects-of-calling:com.dmdirc.config.IdentityManager:getGlobalConfig
    //#unanalyzed(void execute(InputWindow, Server, bool, CommandArguments)): Effects-of-calling:com.dmdirc.config.ConfigManager:getOption
    //#unanalyzed(void execute(InputWindow, Server, bool, CommandArguments)): Effects-of-calling:java.io.File
    //#unanalyzed(void execute(InputWindow, Server, bool, CommandArguments)): Effects-of-calling:java.io.File:exists
    //#unanalyzed(void execute(InputWindow, Server, bool, CommandArguments)): Effects-of-calling:java.io.File:isDirectory
    //#unanalyzed(void execute(InputWindow, Server, bool, CommandArguments)): Effects-of-calling:com.dmdirc.logger.Logger:userError
    //#unanalyzed(void execute(InputWindow, Server, bool, CommandArguments)): Effects-of-calling:java.io.File:mkdirs
    //#unanalyzed(void execute(InputWindow, Server, bool, CommandArguments)): Effects-of-calling:java.lang.Throwable:__curr_excep_obj
    //#unanalyzed(void execute(InputWindow, Server, bool, CommandArguments)): Effects-of-calling:java.lang.String:replaceAll
    //#unanalyzed(void execute(InputWindow, Server, bool, CommandArguments)): Effects-of-calling:com.dmdirc.config.ConfigManager:getOptionBool
    //#unanalyzed(void execute(InputWindow, Server, bool, CommandArguments)): Effects-of-calling:java.lang.String:toLowerCase
    //#unanalyzed(void execute(InputWindow, Server, bool, CommandArguments)): Effects-of-calling:java.lang.StringBuffer:toString
    //#unanalyzed(void execute(InputWindow, Server, bool, CommandArguments)): Effects-of-calling:java.lang.StringBuffer:insert
    //#unanalyzed(void execute(InputWindow, Server, bool, CommandArguments)): Effects-of-calling:java.lang.StringBuffer:append
    //#unanalyzed(void execute(InputWindow, Server, bool, CommandArguments)): Effects-of-calling:com.dmdirc.parser.irc.ClientInfo:getNickname
    //#unanalyzed(void execute(InputWindow, Server, bool, CommandArguments)): Effects-of-calling:java.security.MessageDigest:getInstance
    //#unanalyzed(void execute(InputWindow, Server, bool, CommandArguments)): Effects-of-calling:java.lang.String:getBytes
    //#unanalyzed(void execute(InputWindow, Server, bool, CommandArguments)): Effects-of-calling:java.lang.String:length
    //#unanalyzed(void execute(InputWindow, Server, bool, CommandArguments)): Effects-of-calling:java.security.MessageDigest:update
    //#unanalyzed(void execute(InputWindow, Server, bool, CommandArguments)): Effects-of-calling:java.security.MessageDigest:digest
    //#unanalyzed(void execute(InputWindow, Server, bool, CommandArguments)): Effects-of-calling:java.math.BigInteger
    //#unanalyzed(void execute(InputWindow, Server, bool, CommandArguments)): Effects-of-calling:java.math.BigInteger:toString
    //#unanalyzed(void execute(InputWindow, Server, bool, CommandArguments)): Effects-of-calling:java.lang.StringBuffer
    //#unanalyzed(void execute(InputWindow, Server, bool, CommandArguments)): Effects-of-calling:java.util.Date
    //#unanalyzed(void execute(InputWindow, Server, bool, CommandArguments)): Effects-of-calling:com.dmdirc.Channel:getChannelInfo
    //#unanalyzed(void execute(InputWindow, Server, bool, CommandArguments)): Effects-of-calling:getLogFile
    //#unanalyzed(void execute(InputWindow, Server, bool, CommandArguments)): Effects-of-calling:com.dmdirc.ui.interfaces.InputWindow:getContainer
    //#unanalyzed(void execute(InputWindow, Server, bool, CommandArguments)): Effects-of-calling:com.dmdirc.Channel:instanceof
    //#unanalyzed(void execute(InputWindow, Server, bool, CommandArguments)): Effects-of-calling:com.dmdirc.Query:instanceof
    //#unanalyzed(void execute(InputWindow, Server, bool, CommandArguments)): Effects-of-calling:com.dmdirc.Query:getServer
    //#unanalyzed(void execute(InputWindow, Server, bool, CommandArguments)): Effects-of-calling:com.dmdirc.Server:getParser
    //#unanalyzed(void execute(InputWindow, Server, bool, CommandArguments)): Effects-of-calling:com.dmdirc.Query:getHost
    //#unanalyzed(void execute(InputWindow, Server, bool, CommandArguments)): Effects-of-calling:com.dmdirc.parser.irc.IRCParser:getClientInfo
    //#unanalyzed(void execute(InputWindow, Server, bool, CommandArguments)): Effects-of-calling:com.dmdirc.parser.irc.ClientInfo
    //#unanalyzed(void execute(InputWindow, Server, bool, CommandArguments)): Effects-of-calling:com.dmdirc.parser.irc.ClientInfo:setFake
    //#unanalyzed(void execute(InputWindow, Server, bool, CommandArguments)): Effects-of-calling:com.dmdirc.Server:instanceof
    //#unanalyzed(void execute(InputWindow, Server, bool, CommandArguments)): Effects-of-calling:com.dmdirc.WritableFrameContainer:getServer
    //#unanalyzed(void execute(InputWindow, Server, bool, CommandArguments)): Effects-of-calling:java.io.RandomAccessFile:seek
    //#unanalyzed(void execute(InputWindow, Server, bool, CommandArguments)): Effects-of-calling:java.io.RandomAccessFile:length
    //#unanalyzed(void execute(InputWindow, Server, bool, CommandArguments)): Effects-of-calling:java.io.RandomAccessFile
    //#unanalyzed(void execute(InputWindow, Server, bool, CommandArguments)): Effects-of-calling:com.dmdirc.config.ConfigManager:getOptionInt
    //#unanalyzed(void execute(InputWindow, Server, bool, CommandArguments)): Effects-of-calling:com.dmdirc.ui.interfaces.Window:getConfigManager
    //#unanalyzed(void execute(InputWindow, Server, bool, CommandArguments)): Effects-of-calling:com.dmdirc.FrameContainer
    //#unanalyzed(void execute(InputWindow, Server, bool, CommandArguments)): Effects-of-calling:com.dmdirc.Main:getUI
    //#unanalyzed(void execute(InputWindow, Server, bool, CommandArguments)): Effects-of-calling:com.dmdirc.ui.interfaces.UIController:getWindow
    //#unanalyzed(void execute(InputWindow, Server, bool, CommandArguments)): Effects-of-calling:com.dmdirc.ui.WindowManager:addWindow
    //#unanalyzed(void execute(InputWindow, Server, bool, CommandArguments)): Effects-of-calling:com.dmdirc.ui.interfaces.Window:setTitle
    //#unanalyzed(void execute(InputWindow, Server, bool, CommandArguments)): Effects-of-calling:com.dmdirc.ui.interfaces.Window:open
    //#unanalyzed(void execute(InputWindow, Server, bool, CommandArguments)): Effects-of-calling:java.lang.Math:min
    //#unanalyzed(void execute(InputWindow, Server, bool, CommandArguments)): Effects-of-calling:java.util.ArrayList
    //#unanalyzed(void execute(InputWindow, Server, bool, CommandArguments)): Effects-of-calling:java.io.RandomAccessFile:getFilePointer
    //#unanalyzed(void execute(InputWindow, Server, bool, CommandArguments)): Effects-of-calling:java.io.RandomAccessFile:read
    //#unanalyzed(void execute(InputWindow, Server, bool, CommandArguments)): Effects-of-calling:java.lang.Byte:valueOf
    //#unanalyzed(void execute(InputWindow, Server, bool, CommandArguments)): Effects-of-calling:java.util.ArrayList:add
    //#unanalyzed(void execute(InputWindow, Server, bool, CommandArguments)): Effects-of-calling:java.util.ArrayList:size
    //#unanalyzed(void execute(InputWindow, Server, bool, CommandArguments)): Effects-of-calling:java.util.ArrayList:get
    //#unanalyzed(void execute(InputWindow, Server, bool, CommandArguments)): Effects-of-calling:java.lang.Byte:byteValue
    //#unanalyzed(void execute(InputWindow, Server, bool, CommandArguments)): Effects-of-calling:java.nio.charset.Charset:forName
    //#unanalyzed(void execute(InputWindow, Server, bool, CommandArguments)): Effects-of-calling:java.lang.String
    //#unanalyzed(void execute(InputWindow, Server, bool, CommandArguments)): Effects-of-calling:java.lang.StringBuilder:insert
    //#unanalyzed(void execute(InputWindow, Server, bool, CommandArguments)): Effects-of-calling:java.lang.StringBuilder:charAt
    //#unanalyzed(void execute(InputWindow, Server, bool, CommandArguments)): Effects-of-calling:java.lang.StringBuilder:deleteCharAt
    //#unanalyzed(void execute(InputWindow, Server, bool, CommandArguments)): Effects-of-calling:com.dmdirc.ui.interfaces.Window:addLine
    //#unanalyzed(void execute(InputWindow, Server, bool, CommandArguments)): Effects-of-calling:java.lang.StringBuffer:length
    //#unanalyzed(void execute(InputWindow, Server, bool, CommandArguments)): Effects-of-calling:java.lang.StringBuffer:charAt
    //#unanalyzed(void execute(InputWindow, Server, bool, CommandArguments)): Effects-of-calling:com.dmdirc.parser.irc.ChannelInfo:instanceof
    //#unanalyzed(void execute(InputWindow, Server, bool, CommandArguments)): Effects-of-calling:com.dmdirc.parser.irc.ChannelInfo:getParser
    //#unanalyzed(void execute(InputWindow, Server, bool, CommandArguments)): Effects-of-calling:com.dmdirc.parser.irc.IRCParser:getNetworkName
    //#unanalyzed(void execute(InputWindow, Server, bool, CommandArguments)): Effects-of-calling:com.dmdirc.parser.irc.ChannelInfo:getName
    //#unanalyzed(void execute(InputWindow, Server, bool, CommandArguments)): Effects-of-calling:com.dmdirc.parser.irc.ClientInfo:instanceof
    //#unanalyzed(void execute(InputWindow, Server, bool, CommandArguments)): Effects-of-calling:com.dmdirc.parser.irc.ClientInfo:getParser
    //#unanalyzed(void execute(InputWindow, Server, bool, CommandArguments)): Effects-of-calling:java.lang.Object:toString
    //#unanalyzed(void execute(InputWindow, Server, bool, CommandArguments)): Effects-of-calling:java.text.SimpleDateFormat:format
    //#test_vector(void execute(InputWindow, Server, bool, CommandArguments)): com.dmdirc.commandparser.CommandArguments:getArguments(...).length@70: {0}, {1..+Inf}
    //#test_vector(void execute(InputWindow, Server, bool, CommandArguments)): com.dmdirc.plugins.PluginManager:getPluginInfoByName(...)@56: Inverse{null}, Addr_Set{null}
    //#test_vector(void execute(InputWindow, Server, bool, CommandArguments)): com.dmdirc.plugins.PluginManager:reloadPlugin(...)@72: {0}, {1}
    //#test_vector(void execute(InputWindow, Server, bool, CommandArguments)): java.lang.String:equalsIgnoreCase(...)@71: {0}, {1}
    //#test_vector(void execute(InputWindow, Server, bool, CommandArguments)): java.lang.String:equalsIgnoreCase(...)@77: {0}, {1}
    //#test_vector(void execute(InputWindow, Server, bool, CommandArguments)): java.lang.String:equalsIgnoreCase(...)@81: {0}, {1}
		if (pluginInfo == null) { 
			sendLine(origin, isSilent, FORMAT_ERROR, "Logging Plugin is not loaded.");
    //#LoggingCommand.java:58: Warning: method not available - call not analyzed
    //#    call on void com.dmdirc.addons.logging.LoggingCommand:sendLine(InputWindow, bool, String, Object[])
    //#    severity: INFORMATIONAL
    //#    class: com.dmdirc.addons.logging.LoggingCommand
    //#    method: void execute(InputWindow, Server, bool, CommandArguments)
    //#    unanalyzed callee: void com.dmdirc.addons.logging.LoggingCommand:sendLine(InputWindow, bool, String, Object[])
			return;
		}
		final Plugin gotPlugin = pluginInfo.getPlugin();
    //#LoggingCommand.java:61: Warning: method not available - call not analyzed
    //#    call on Plugin com.dmdirc.plugins.PluginInfo:getPlugin()
    //#    severity: INFORMATIONAL
    //#    class: com.dmdirc.addons.logging.LoggingCommand
    //#    method: void execute(InputWindow, Server, bool, CommandArguments)
    //#    unanalyzed callee: Plugin com.dmdirc.plugins.PluginInfo:getPlugin()
		
		if (!(gotPlugin instanceof LoggingPlugin)) {
			sendLine(origin, isSilent, FORMAT_ERROR, "Logging Plugin is not loaded.");
    //#LoggingCommand.java:64: Warning: method not available - call not analyzed
    //#    call on void com.dmdirc.addons.logging.LoggingCommand:sendLine(InputWindow, bool, String, Object[])
    //#    severity: INFORMATIONAL
    //#    class: com.dmdirc.addons.logging.LoggingCommand
    //#    method: void execute(InputWindow, Server, bool, CommandArguments)
    //#    unanalyzed callee: void com.dmdirc.addons.logging.LoggingCommand:sendLine(InputWindow, bool, String, Object[])
			return;
		}
		
		final LoggingPlugin plugin = (LoggingPlugin) gotPlugin;
		
		if (args.getArguments().length > 0) {
    //#LoggingCommand.java:70: Warning: method not available - call not analyzed
    //#    call on String[] com.dmdirc.commandparser.CommandArguments:getArguments()
    //#    severity: INFORMATIONAL
    //#    class: com.dmdirc.addons.logging.LoggingCommand
    //#    method: void execute(InputWindow, Server, bool, CommandArguments)
    //#    unanalyzed callee: String[] com.dmdirc.commandparser.CommandArguments:getArguments()
			if (args.getArguments()[0].equalsIgnoreCase("reload")) {
    //#LoggingCommand.java:71: Warning: method not available - call not analyzed
    //#    call on String[] com.dmdirc.commandparser.CommandArguments:getArguments()
    //#    severity: INFORMATIONAL
    //#    class: com.dmdirc.addons.logging.LoggingCommand
    //#    method: void execute(InputWindow, Server, bool, CommandArguments)
    //#    unanalyzed callee: String[] com.dmdirc.commandparser.CommandArguments:getArguments()
				if (PluginManager.getPluginManager().reloadPlugin(pluginInfo.getFilename())) {
    //#LoggingCommand.java:72: Warning: method not available - call not analyzed
    //#    call on PluginManager com.dmdirc.plugins.PluginManager:getPluginManager()
    //#    severity: INFORMATIONAL
    //#    class: com.dmdirc.addons.logging.LoggingCommand
    //#    method: void execute(InputWindow, Server, bool, CommandArguments)
    //#    unanalyzed callee: PluginManager com.dmdirc.plugins.PluginManager:getPluginManager()
    //#LoggingCommand.java:72: Warning: method not available - call not analyzed
    //#    call on String com.dmdirc.plugins.PluginInfo:getFilename()
    //#    severity: INFORMATIONAL
    //#    class: com.dmdirc.addons.logging.LoggingCommand
    //#    method: void execute(InputWindow, Server, bool, CommandArguments)
    //#    unanalyzed callee: String com.dmdirc.plugins.PluginInfo:getFilename()
    //#LoggingCommand.java:72: Warning: method not available - call not analyzed
    //#    call on bool com.dmdirc.plugins.PluginManager:reloadPlugin(String)
    //#    severity: INFORMATIONAL
    //#    class: com.dmdirc.addons.logging.LoggingCommand
    //#    method: void execute(InputWindow, Server, bool, CommandArguments)
    //#    unanalyzed callee: bool com.dmdirc.plugins.PluginManager:reloadPlugin(String)
					sendLine(origin, isSilent, FORMAT_OUTPUT, "Plugin reloaded.");
    //#LoggingCommand.java:73: Warning: method not available - call not analyzed
    //#    call on void com.dmdirc.addons.logging.LoggingCommand:sendLine(InputWindow, bool, String, Object[])
    //#    severity: INFORMATIONAL
    //#    class: com.dmdirc.addons.logging.LoggingCommand
    //#    method: void execute(InputWindow, Server, bool, CommandArguments)
    //#    unanalyzed callee: void com.dmdirc.addons.logging.LoggingCommand:sendLine(InputWindow, bool, String, Object[])
				} else {
					sendLine(origin, isSilent, FORMAT_ERROR, "Plugin failed to reload.");
    //#LoggingCommand.java:75: Warning: method not available - call not analyzed
    //#    call on void com.dmdirc.addons.logging.LoggingCommand:sendLine(InputWindow, bool, String, Object[])
    //#    severity: INFORMATIONAL
    //#    class: com.dmdirc.addons.logging.LoggingCommand
    //#    method: void execute(InputWindow, Server, bool, CommandArguments)
    //#    unanalyzed callee: void com.dmdirc.addons.logging.LoggingCommand:sendLine(InputWindow, bool, String, Object[])
				}
			} else if (args.getArguments()[0].equalsIgnoreCase("history")) {
    //#LoggingCommand.java:77: Warning: method not available - call not analyzed
    //#    call on String[] com.dmdirc.commandparser.CommandArguments:getArguments()
    //#    severity: INFORMATIONAL
    //#    class: com.dmdirc.addons.logging.LoggingCommand
    //#    method: void execute(InputWindow, Server, bool, CommandArguments)
    //#    unanalyzed callee: String[] com.dmdirc.commandparser.CommandArguments:getArguments()
				if (!plugin.showHistory(origin)) {
					sendLine(origin, isSilent, FORMAT_ERROR, "Unable to open history for this window.");
    //#LoggingCommand.java:79: Warning: method not available - call not analyzed
    //#    call on void com.dmdirc.addons.logging.LoggingCommand:sendLine(InputWindow, bool, String, Object[])
    //#    severity: INFORMATIONAL
    //#    class: com.dmdirc.addons.logging.LoggingCommand
    //#    method: void execute(InputWindow, Server, bool, CommandArguments)
    //#    unanalyzed callee: void com.dmdirc.addons.logging.LoggingCommand:sendLine(InputWindow, bool, String, Object[])
    		}
			} else if (args.getArguments()[0].equalsIgnoreCase("help")) {
    //#LoggingCommand.java:81: Warning: method not available - call not analyzed
    //#    call on String[] com.dmdirc.commandparser.CommandArguments:getArguments()
    //#    severity: INFORMATIONAL
    //#    class: com.dmdirc.addons.logging.LoggingCommand
    //#    method: void execute(InputWindow, Server, bool, CommandArguments)
    //#    unanalyzed callee: String[] com.dmdirc.commandparser.CommandArguments:getArguments()
				sendLine(origin, isSilent, FORMAT_OUTPUT, getName() + " reload           - Reload the logging plugin.");
    //#LoggingCommand.java:82: Warning: method not available - call not analyzed
    //#    call on void com.dmdirc.addons.logging.LoggingCommand:sendLine(InputWindow, bool, String, Object[])
    //#    severity: INFORMATIONAL
    //#    class: com.dmdirc.addons.logging.LoggingCommand
    //#    method: void execute(InputWindow, Server, bool, CommandArguments)
    //#    unanalyzed callee: void com.dmdirc.addons.logging.LoggingCommand:sendLine(InputWindow, bool, String, Object[])
				sendLine(origin, isSilent, FORMAT_OUTPUT, getName() + " history          - Open the history of this window, if available.");
    //#LoggingCommand.java:83: Warning: method not available - call not analyzed
    //#    call on void com.dmdirc.addons.logging.LoggingCommand:sendLine(InputWindow, bool, String, Object[])
    //#    severity: INFORMATIONAL
    //#    class: com.dmdirc.addons.logging.LoggingCommand
    //#    method: void execute(InputWindow, Server, bool, CommandArguments)
    //#    unanalyzed callee: void com.dmdirc.addons.logging.LoggingCommand:sendLine(InputWindow, bool, String, Object[])
				sendLine(origin, isSilent, FORMAT_OUTPUT, getName() + " help             - Show this help.");
    //#LoggingCommand.java:84: Warning: method not available - call not analyzed
    //#    call on void com.dmdirc.addons.logging.LoggingCommand:sendLine(InputWindow, bool, String, Object[])
    //#    severity: INFORMATIONAL
    //#    class: com.dmdirc.addons.logging.LoggingCommand
    //#    method: void execute(InputWindow, Server, bool, CommandArguments)
    //#    unanalyzed callee: void com.dmdirc.addons.logging.LoggingCommand:sendLine(InputWindow, bool, String, Object[])
			} else {
				sendLine(origin, isSilent, FORMAT_ERROR, "Unknown command '" + args.getArguments()[0] + "'. Use " + getName() + " help for a list of commands.");
    //#LoggingCommand.java:86: Warning: method not available - call not analyzed
    //#    call on String[] com.dmdirc.commandparser.CommandArguments:getArguments()
    //#    severity: INFORMATIONAL
    //#    class: com.dmdirc.addons.logging.LoggingCommand
    //#    method: void execute(InputWindow, Server, bool, CommandArguments)
    //#    unanalyzed callee: String[] com.dmdirc.commandparser.CommandArguments:getArguments()
    //#LoggingCommand.java:86: Warning: method not available - call not analyzed
    //#    call on void com.dmdirc.addons.logging.LoggingCommand:sendLine(InputWindow, bool, String, Object[])
    //#    severity: INFORMATIONAL
    //#    class: com.dmdirc.addons.logging.LoggingCommand
    //#    method: void execute(InputWindow, Server, bool, CommandArguments)
    //#    unanalyzed callee: void com.dmdirc.addons.logging.LoggingCommand:sendLine(InputWindow, bool, String, Object[])
			}
		} else {
			sendLine(origin, isSilent, FORMAT_ERROR, "Use " + getName() + " help for a list of commands.");
    //#LoggingCommand.java:89: Warning: method not available - call not analyzed
    //#    call on void com.dmdirc.addons.logging.LoggingCommand:sendLine(InputWindow, bool, String, Object[])
    //#    severity: INFORMATIONAL
    //#    class: com.dmdirc.addons.logging.LoggingCommand
    //#    method: void execute(InputWindow, Server, bool, CommandArguments)
    //#    unanalyzed callee: void com.dmdirc.addons.logging.LoggingCommand:sendLine(InputWindow, bool, String, Object[])
		}
	}
    //#LoggingCommand.java:91: end of method: void com.dmdirc.addons.logging.LoggingCommand.execute(InputWindow, Server, bool, CommandArguments)

	/**
	 * Returns a list of suggestions for the specified argument, given the list
	 * of previous arguments.
	 *
	 * @param arg The argument that is being completed
	 * @param previousArgs The contents of the previous arguments, if any
	 * @return A list of suggestions for the argument
	 */
    @Override
	public AdditionalTabTargets getSuggestions(final int arg, final List<String> previousArgs) {
			final AdditionalTabTargets res = new AdditionalTabTargets();
    //#LoggingCommand.java:103: method: AdditionalTabTargets com.dmdirc.addons.logging.LoggingCommand.getSuggestions(int, List)
    //#LoggingCommand.java:103: Warning: method not available - call not analyzed
    //#    call on void com.dmdirc.ui.input.AdditionalTabTargets()
    //#    severity: INFORMATIONAL
    //#    class: com.dmdirc.addons.logging.LoggingCommand
    //#    method: AdditionalTabTargets getSuggestions(int, List)
    //#    unanalyzed callee: void com.dmdirc.ui.input.AdditionalTabTargets()
    //#input(AdditionalTabTargets getSuggestions(int, List)): arg
    //#output(AdditionalTabTargets getSuggestions(int, List)): new AdditionalTabTargets(getSuggestions#1) num objects
    //#output(AdditionalTabTargets getSuggestions(int, List)): return_value
    //#new obj(AdditionalTabTargets getSuggestions(int, List)): new AdditionalTabTargets(getSuggestions#1)
    //#post(AdditionalTabTargets getSuggestions(int, List)): return_value == &new AdditionalTabTargets(getSuggestions#1)
    //#post(AdditionalTabTargets getSuggestions(int, List)): new AdditionalTabTargets(getSuggestions#1) num objects == 1
    //#test_vector(AdditionalTabTargets getSuggestions(int, List)): arg: {-2_147_483_648..-1, 1..4_294_967_295}, {0}
			if (arg == 0) {
				res.add("reload");
    //#LoggingCommand.java:105: Warning: method not available - call not analyzed
    //#    call on bool com.dmdirc.ui.input.AdditionalTabTargets:add(Object)
    //#    severity: INFORMATIONAL
    //#    class: com.dmdirc.addons.logging.LoggingCommand
    //#    method: AdditionalTabTargets getSuggestions(int, List)
    //#    unanalyzed callee: bool com.dmdirc.ui.input.AdditionalTabTargets:add(Object)
				res.add("history");
    //#LoggingCommand.java:106: Warning: method not available - call not analyzed
    //#    call on bool com.dmdirc.ui.input.AdditionalTabTargets:add(Object)
    //#    severity: INFORMATIONAL
    //#    class: com.dmdirc.addons.logging.LoggingCommand
    //#    method: AdditionalTabTargets getSuggestions(int, List)
    //#    unanalyzed callee: bool com.dmdirc.ui.input.AdditionalTabTargets:add(Object)
				res.add("help");
    //#LoggingCommand.java:107: Warning: method not available - call not analyzed
    //#    call on bool com.dmdirc.ui.input.AdditionalTabTargets:add(Object)
    //#    severity: INFORMATIONAL
    //#    class: com.dmdirc.addons.logging.LoggingCommand
    //#    method: AdditionalTabTargets getSuggestions(int, List)
    //#    unanalyzed callee: bool com.dmdirc.ui.input.AdditionalTabTargets:add(Object)
				res.excludeAll();
    //#LoggingCommand.java:108: Warning: method not available - call not analyzed
    //#    call on AdditionalTabTargets com.dmdirc.ui.input.AdditionalTabTargets:excludeAll()
    //#    severity: INFORMATIONAL
    //#    class: com.dmdirc.addons.logging.LoggingCommand
    //#    method: AdditionalTabTargets getSuggestions(int, List)
    //#    unanalyzed callee: AdditionalTabTargets com.dmdirc.ui.input.AdditionalTabTargets:excludeAll()
			}
			return res;
    //#LoggingCommand.java:110: end of method: AdditionalTabTargets com.dmdirc.addons.logging.LoggingCommand.getSuggestions(int, List)
	}

	/**
	 * Returns this command's name.
	 *
	 * @return The name of this command
	 */
    @Override
	public String getName() { return "logging"; }
    //#LoggingCommand.java:119: method: String com.dmdirc.addons.logging.LoggingCommand.getName()
    //#output(String getName()): return_value
    //#post(String getName()): return_value == &"logging"
    //#LoggingCommand.java:119: end of method: String com.dmdirc.addons.logging.LoggingCommand.getName()
	
	/**
	 * Returns whether or not this command should be shown in help messages.
	 *
	 * @return True iff the command should be shown, false otherwise
	 */
    @Override
	public boolean showInHelp() { return true; }
    //#LoggingCommand.java:127: method: bool com.dmdirc.addons.logging.LoggingCommand.showInHelp()
    //#output(bool showInHelp()): return_value
    //#post(bool showInHelp()): return_value == 1
    //#LoggingCommand.java:127: end of method: bool com.dmdirc.addons.logging.LoggingCommand.showInHelp()
	
	/**
	 * Returns a string representing the help message for this command.
	 *
	 * @return the help message for this command
	 */
    @Override
	public String getHelp() { return this.getName() + " <set|help> [parameters]"; }
    //#LoggingCommand.java:135: method: String com.dmdirc.addons.logging.LoggingCommand.getHelp()
    //#input(String getHelp()): " <set|help> [parameters]"._tainted
    //#input(String getHelp()): "logging"._tainted
    //#input(String getHelp()): this
    //#output(String getHelp()): java.lang.StringBuilder:toString(...)._tainted
    //#output(String getHelp()): return_value
    //#new obj(String getHelp()): java.lang.StringBuilder:toString(...)
    //#post(String getHelp()): java.lang.StringBuilder:toString(...)._tainted == 0
    //#post(String getHelp()): return_value == &java.lang.StringBuilder:toString(...)
    //#LoggingCommand.java:135: end of method: String com.dmdirc.addons.logging.LoggingCommand.getHelp()
	
}

    //#output(com.dmdirc.addons.logging.LoggingCommand__static_init): __Descendant_Table[com/dmdirc/addons/logging/LoggingCommand]
    //#output(com.dmdirc.addons.logging.LoggingCommand__static_init): __Dispatch_Table.execute(Lcom/dmdirc/ui/interfaces/InputWindow;Lcom/dmdirc/Server;ZLcom/dmdirc/commandparser/CommandArguments;)V
    //#output(com.dmdirc.addons.logging.LoggingCommand__static_init): __Dispatch_Table.getHelp()Ljava/lang/String;
    //#output(com.dmdirc.addons.logging.LoggingCommand__static_init): __Dispatch_Table.getName()Ljava/lang/String;
    //#output(com.dmdirc.addons.logging.LoggingCommand__static_init): __Dispatch_Table.getSuggestions(ILjava/util/List;)Lcom/dmdirc/ui/input/AdditionalTabTargets;
    //#output(com.dmdirc.addons.logging.LoggingCommand__static_init): __Dispatch_Table.showInHelp()Z
    //#post(com.dmdirc.addons.logging.LoggingCommand__static_init): __Descendant_Table[com/dmdirc/addons/logging/LoggingCommand] == &__Dispatch_Table
    //#post(com.dmdirc.addons.logging.LoggingCommand__static_init): __Dispatch_Table.execute(Lcom/dmdirc/ui/interfaces/InputWindow;Lcom/dmdirc/Server;ZLcom/dmdirc/commandparser/CommandArguments;)V == &execute
    //#post(com.dmdirc.addons.logging.LoggingCommand__static_init): __Dispatch_Table.getHelp()Ljava/lang/String; == &getHelp
    //#post(com.dmdirc.addons.logging.LoggingCommand__static_init): __Dispatch_Table.getName()Ljava/lang/String; == &getName
    //#post(com.dmdirc.addons.logging.LoggingCommand__static_init): __Dispatch_Table.getSuggestions(ILjava/util/List;)Lcom/dmdirc/ui/input/AdditionalTabTargets; == &getSuggestions
    //#post(com.dmdirc.addons.logging.LoggingCommand__static_init): __Dispatch_Table.showInHelp()Z == &showInHelp
    //#LoggingCommand.java:: end of method: com.dmdirc.addons.logging.LoggingCommand.com.dmdirc.addons.logging.LoggingCommand__static_init
    //#LoggingCommand.java:: end of class: com.dmdirc.addons.logging.LoggingCommand
