equal
deleted
inserted
replaced
598 |
598 |
599 roster_usr = (roster*)sl_user->data; |
599 roster_usr = (roster*)sl_user->data; |
600 return roster_usr->name; |
600 return roster_usr->name; |
601 } |
601 } |
602 |
602 |
|
603 const char *roster_getnickname(const char *jid) |
|
604 { |
|
605 GSList *sl_user; |
|
606 roster *roster_usr; |
|
607 |
|
608 sl_user = roster_find(jid, jidsearch, |
|
609 ROSTER_TYPE_USER|ROSTER_TYPE_ROOM|ROSTER_TYPE_AGENT); |
|
610 if (sl_user == NULL) |
|
611 return NULL; // Not in the roster... |
|
612 |
|
613 roster_usr = (roster*)sl_user->data; |
|
614 return roster_usr->nickname; |
|
615 } |
|
616 |
603 void roster_settype(const char *jid, guint type) |
617 void roster_settype(const char *jid, guint type) |
604 { |
618 { |
605 GSList *sl_user; |
619 GSList *sl_user; |
606 roster *roster_usr; |
620 roster *roster_usr; |
607 |
621 |