X-Git-Url: http://pileus.org/git/?p=~andy%2Fspades;a=blobdiff_plain;f=src%2Forg%2Fpileus%2Fspades%2FMessage.java;h=77e657b9ff0d1ed2069244e2d674e05cf4ccfb4f;hp=ad71c2d5b2dbdee779b4ca3241d3575f9971844f;hb=3da596612cb845a8a6bd6015b0345fa695923d3e;hpb=254a01823368fd3692476fb87022805b6e4a184f diff --git a/src/org/pileus/spades/Message.java b/src/org/pileus/spades/Message.java index ad71c2d..77e657b 100644 --- a/src/org/pileus/spades/Message.java +++ b/src/org/pileus/spades/Message.java @@ -24,7 +24,8 @@ public class Message CHANNEL, // Normal message to a channel MENTION, // User was mentioned in message text DIRECT, // Message directed towards user - PRIVMSG // Private message to user only + PRIVMSG, // Private message to user only + SENT // Message was sent by the user }; /* Constants */ @@ -62,7 +63,10 @@ public class Message /* Public Methods */ public Message(String dst, String from, String msg) { + this.time = new Date(); + this.type = Type.PRIVMSG; this.cmd = "PRIVMSG"; + this.how = How.SENT; this.dst = dst; this.from = from; this.msg = msg;