|
@@ -28,17 +28,17 @@ import uk.org.ownage.dmdirc.commandparser.CommandWindow;
|
28
|
28
|
import uk.org.ownage.dmdirc.commandparser.ServerCommand;
|
29
|
29
|
|
30
|
30
|
/**
|
31
|
|
- * Represents the quit/0 command (i.e., a quit with no arguments). Reads the
|
32
|
|
- * default quit message from the config file and calls the normal quit command
|
|
31
|
+ * Represents the exit/0 command (i.e., an exit with no arguments). Reads the
|
|
32
|
+ * default exit message from the config file and calls the normal exit command
|
33
|
33
|
* with it as an argument.
|
34
|
34
|
* @author chris
|
35
|
35
|
*/
|
36
|
|
-public final class QuitDefault extends ServerCommand {
|
|
36
|
+public final class ExitDefault extends ServerCommand {
|
37
|
37
|
|
38
|
38
|
/**
|
39
|
|
- * Creates a new instance of QuitDefault.
|
|
39
|
+ * Creates a new instance of ExitDefault.
|
40
|
40
|
*/
|
41
|
|
- public QuitDefault() {
|
|
41
|
+ public ExitDefault() {
|
42
|
42
|
super();
|
43
|
43
|
|
44
|
44
|
CommandManager.registerCommand(this);
|
|
@@ -52,8 +52,8 @@ public final class QuitDefault extends ServerCommand {
|
52
|
52
|
*/
|
53
|
53
|
public void execute(final CommandWindow origin, final Server server,
|
54
|
54
|
final String... args) {
|
55
|
|
- final String def = origin.getConfigManager().getOption("general", "quitmessage");
|
56
|
|
- CommandManager.getServerCommand("quit").execute(origin, server, def);
|
|
55
|
+ final String def = origin.getConfigManager().getOption("general", "closemessage");
|
|
56
|
+ CommandManager.getServerCommand("exit").execute(origin, server, def);
|
57
|
57
|
}
|
58
|
58
|
|
59
|
59
|
|
|
@@ -79,7 +79,7 @@ public final class QuitDefault extends ServerCommand {
|
79
|
79
|
|
80
|
80
|
/** {@inheritDoc}. */
|
81
|
81
|
public String getHelp() {
|
82
|
|
- return "quit - quits the server with the default quit message";
|
|
82
|
+ return "exit - exits the client with the default closing message";
|
83
|
83
|
}
|
84
|
84
|
|
85
|
85
|
}
|