mcabber/src/roster.c
changeset 318 45076d02eeef
parent 301 efcbd3c1ad15
child 330 a9013124ede6
equal deleted inserted replaced
317:f2d29644a0df 318:45076d02eeef
   357 
   357 
   358   roster_usr = (roster*)sl_user->data;
   358   roster_usr = (roster*)sl_user->data;
   359   return roster_usr->status;
   359   return roster_usr->status;
   360 }
   360 }
   361 
   361 
       
   362 const char *roster_getstatusmsg(const char *jid)
       
   363 {
       
   364   GSList *sl_user;
       
   365   roster *roster_usr;
       
   366 
       
   367   sl_user = roster_find(jid, jidsearch, ROSTER_TYPE_USER|ROSTER_TYPE_AGENT);
       
   368   if (sl_user == NULL)
       
   369     return offline; // Not in the roster, anyway...
       
   370 
       
   371   roster_usr = (roster*)sl_user->data;
       
   372   return roster_usr->status_msg;
       
   373 }
       
   374 
   362 guint roster_gettype(const char *jid)
   375 guint roster_gettype(const char *jid)
   363 {
   376 {
   364   GSList *sl_user;
   377   GSList *sl_user;
   365   roster *roster_usr;
   378   roster *roster_usr;
   366 
   379