]> Pileus Git - ~andy/spades/blobdiff - src/org/pileus/spades/Message.java
Add aliases or /j and /p
[~andy/spades] / src / org / pileus / spades / Message.java
index 61bf2bbed9654bf2035c0f33cba303059e14b438..717677c35e3faddbefcc5f5ecf9ab8aafe8eb8e9 100644 (file)
@@ -213,7 +213,7 @@ public class Message
                String arg = notnull(mr.group(3));
 
                // Parse commands
-               if (cmd.matches("join")) {
+               if (cmd.matches("j(oin)?")) {
                        Os.debug("Message: /join");
                        this.type = Type.JOIN;
                        this.cmd  = "JOIN";
@@ -221,7 +221,7 @@ public class Message
                        this.line = this.cmd + " :" + arg;
                }
 
-               if (cmd.matches("part")) {
+               if (cmd.matches("p(art)?")) {
                        Os.debug("Message: /part");
                        this.type = Type.PART;
                        this.cmd  = "PART";