Mercurial > ~mikael > mcabber > hg
comparison mcabber/src/roster.c @ 425:03f1e37759a6
roster_getstatusmsg() should return a pointer
However, it was ok because offline == 0.
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Sun, 04 Sep 2005 13:51:23 +0200 |
parents | f8f3c7493457 |
children | b44be19d6229 |
comparison
equal
deleted
inserted
replaced
424:98b156dc2674 | 425:03f1e37759a6 |
---|---|
365 GSList *sl_user; | 365 GSList *sl_user; |
366 roster *roster_usr; | 366 roster *roster_usr; |
367 | 367 |
368 sl_user = roster_find(jid, jidsearch, ROSTER_TYPE_USER|ROSTER_TYPE_AGENT); | 368 sl_user = roster_find(jid, jidsearch, ROSTER_TYPE_USER|ROSTER_TYPE_AGENT); |
369 if (sl_user == NULL) | 369 if (sl_user == NULL) |
370 return offline; // Not in the roster, anyway... | 370 return NULL; // Not in the roster, anyway... |
371 | 371 |
372 roster_usr = (roster*)sl_user->data; | 372 roster_usr = (roster*)sl_user->data; |
373 return roster_usr->status_msg; | 373 return roster_usr->status_msg; |
374 } | 374 } |
375 | 375 |