Bläddra i källkod

Renamed quit to exit

git-svn-id: http://svn.dmdirc.com/trunk@1215 00569f92-eb28-0410-84fd-f71c24880f
tags/0.4
Chris Smith 17 år sedan
förälder
incheckning
3b13198d3c

+ 2
- 2
src/uk/org/ownage/dmdirc/commandparser/CommandManager.java Visa fil

@@ -266,8 +266,8 @@ public final class CommandManager {
266 266
         new Nick();
267 267
         new Notice();
268 268
         new Query();
269
-        new Quit();
270
-        new QuitDefault();
269
+        new Exit();
270
+        new ExitDefault();
271 271
         new Raw();
272 272
         new Reconnect();
273 273
         new ReloadActions();

src/uk/org/ownage/dmdirc/commandparser/commands/server/Quit.java → src/uk/org/ownage/dmdirc/commandparser/commands/server/Exit.java Visa fil

@@ -22,26 +22,24 @@
22 22
 
23 23
 package uk.org.ownage.dmdirc.commandparser.commands.server;
24 24
 
25
-import uk.org.ownage.dmdirc.Config;
26 25
 import uk.org.ownage.dmdirc.Main;
27 26
 import uk.org.ownage.dmdirc.Server;
28
-import uk.org.ownage.dmdirc.ServerManager;
29 27
 import uk.org.ownage.dmdirc.commandparser.CommandManager;
30 28
 import uk.org.ownage.dmdirc.commandparser.CommandWindow;
31 29
 import uk.org.ownage.dmdirc.commandparser.ServerCommand;
32 30
 
33 31
 /**
34
- * The quit command allows the user to quit DMDirc with a custom quit message.
32
+ * The exit command allows the user to quit DMDirc with a custom quit message.
35 33
  * When the client quits, it disconnects all servers (with the quit message
36 34
  * supplied) and saves the config file.
37 35
  * @author chris
38 36
  */
39
-public final class Quit extends ServerCommand {
37
+public final class Exit extends ServerCommand {
40 38
     
41 39
     /**
42
-     * Creates a new instance of Quit.
40
+     * Creates a new instance of Exit.
43 41
      */
44
-    public Quit() {
42
+    public Exit() {
45 43
         super();
46 44
         
47 45
         CommandManager.registerCommand(this);
@@ -61,7 +59,7 @@ public final class Quit extends ServerCommand {
61 59
     
62 60
     /** {@inheritDoc}. */
63 61
     public String getName() {
64
-        return "quit";
62
+        return "exit";
65 63
     }
66 64
     
67 65
     /** {@inheritDoc}. */
@@ -81,7 +79,7 @@ public final class Quit extends ServerCommand {
81 79
     
82 80
     /** {@inheritDoc}. */
83 81
     public String getHelp() {
84
-        return "quit <reason> - quits the server with the specified reason";
82
+        return "exit <reason> - exits the client with the specified reason";
85 83
     }
86 84
     
87 85
 }

src/uk/org/ownage/dmdirc/commandparser/commands/server/QuitDefault.java → src/uk/org/ownage/dmdirc/commandparser/commands/server/ExitDefault.java Visa fil

@@ -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
 }

Laddar…
Avbryt
Spara