comparison mcabber/src/roster.c @ 510:6c3cd3aa4a91

New 'buddy_format' option
author Mikael Berthe <mikael@lilotux.net>
date Sat, 12 Nov 2005 17:36:20 +0100
parents cd52ddef5ce1
children c60175268eb5
comparison
equal deleted inserted replaced
509:cd52ddef5ce1 510:6c3cd3aa4a91
487 // Actually the "else" part is useless, because the group 487 // Actually the "else" part is useless, because the group
488 // ROSTER_FLAG_MSG should already be set... 488 // ROSTER_FLAG_MSG should already be set...
489 } 489 }
490 } 490 }
491 491
492 const char *roster_getname(const char *jid)
493 {
494 GSList *sl_user;
495 roster *roster_usr;
496
497 sl_user = roster_find(jid, jidsearch,
498 ROSTER_TYPE_USER|ROSTER_TYPE_ROOM|ROSTER_TYPE_AGENT);
499 if (sl_user == NULL)
500 return NULL; // Not in the roster...
501
502 roster_usr = (roster*)sl_user->data;
503 return roster_usr->name;
504 }
505
492 void roster_settype(const char *jid, guint type) 506 void roster_settype(const char *jid, guint type)
493 { 507 {
494 GSList *sl_user; 508 GSList *sl_user;
495 roster *roster_usr; 509 roster *roster_usr;
496 510