]> Pileus Git - ~andy/spades/blobdiff - src/org/pileus/spades/Message.java
Clean up IRC formatting a little
[~andy/spades] / src / org / pileus / spades / Message.java
index ad71c2d5b2dbdee779b4ca3241d3575f9971844f..77e657b9ff0d1ed2069244e2d674e05cf4ccfb4f 100644 (file)
@@ -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;