public int code;
public String hex;
public String name;
+ public int color;
public Color(int code, String hex, String name)
{
this.code = code;
this.hex = hex;
this.name = name;
+ this.color = Os.getColor(hex);
}
};
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";