From e19c3d75d5813b2a37c60193e11ef90b8a75f6dc Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Wed, 31 Oct 2018 13:31:09 +0800 Subject: [PATCH] RooTicket.vala --- RooTicket.vala | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/RooTicket.vala b/RooTicket.vala index a9237da1..3b8271f1 100644 --- a/RooTicket.vala +++ b/RooTicket.vala @@ -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) -- 2.39.2