]> Pileus Git - ~andy/spades/blobdiff - src/Task.java
Setup game automatically
[~andy/spades] / src / Task.java
index 97fe9b9311d2ee777f53b38323025f20fd05bd3b..26e0bd872343b7ce1a09c78755970ff5920d9ca6 100644 (file)
@@ -100,6 +100,16 @@ public class Task extends Service implements Runnable
        }
 
        /* Public methods */
+       public Message send(String dst, String txt)
+       {
+               if (this.client == null)
+                       return null;
+               Message msg = this.client.send(dst, txt);
+               if (msg != null)
+                       this.command(MESSAGE, msg);
+               return msg;
+       }
+
        public Message send(String txt)
        {
                if (this.client == null)