Mercurial > ~mikael > mcabber > hg
comparison mcabber/src/roster.c @ 318:45076d02eeef
The /status command can specify a status message
We can now use: "/status dnd On the phone..."
Related change: Display the buddy status message when a buddy connects/changes
his/her status.
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Fri, 15 Jul 2005 18:45:41 +0100 |
parents | efcbd3c1ad15 |
children | a9013124ede6 |
comparison
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 |