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";
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";