From: Andy Spencer Date: Wed, 11 Dec 2013 03:29:34 +0000 (+0000) Subject: Add aliases or /j and /p X-Git-Url: http://pileus.org/git/?p=~andy%2Fspades;a=commitdiff_plain;h=3ddba8ece8bba88cc6551a858e064d99c87a98b6 Add aliases or /j and /p --- diff --git a/src/org/pileus/spades/Message.java b/src/org/pileus/spades/Message.java index 61bf2bb..717677c 100644 --- a/src/org/pileus/spades/Message.java +++ b/src/org/pileus/spades/Message.java @@ -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";