RooTicket.vala
authorAlan Knowles <alan@roojs.com>
Wed, 31 Oct 2018 05:31:09 +0000 (13:31 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 31 Oct 2018 05:31:09 +0000 (13:31 +0800)
RooTicket.vala

index a9237da..3b8271f 100644 (file)
@@ -44,7 +44,13 @@ class RooTicket : Object
                return ret;
                
        }
-
+       public string usernameLocal()
+       {
+               // git username is an email addres... - so this reutrns the local part..
+               //?? assumes that all members are under the same domain... normally the case......
+               return RooTicket.singleton().username.split('@')[0];
+       
+       }
 
 
        public void addTicket(Json.Object t)