summaryrefslogtreecommitdiffstats
path: root/src/gui/Roster.vala
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/Roster.vala')
-rw-r--r--src/gui/Roster.vala8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/gui/Roster.vala b/src/gui/Roster.vala
index f25584c..72134e6 100644
--- a/src/gui/Roster.vala
+++ b/src/gui/Roster.vala
@@ -25,7 +25,15 @@ public class Roster : Object, Gtk.TreeModel {
else
row_changed(path, iter);
}
+
+ public Contact get_contact(string jid) {
+ string bareJID = jid.split("/", 2)[0];
+
+ stdout.printf("Getting Contact for %s\n", bareJID);
+ return entries[bareJID];
+ }
+
public Type get_column_type (int index) {
switch(index) {
case 0: