Mercurial > ~mikael > mcabber > hg
comparison mcabber/src/jabglue.c @ 221:73f6ce668ba8
[/trunk] Changeset 233 by mikael
* /info now displays the current status message
author | mikael |
---|---|
date | Sat, 04 Jun 2005 12:47:13 +0000 |
parents | 4fcdbfdf7c20 |
children | 925bb5fa85ac |
comparison
equal
deleted
inserted
replaced
220:8dfdc6f1778e | 221:73f6ce668ba8 |
---|---|
811 | 811 |
812 if (type && !strcmp(type, "unavailable")) { | 812 if (type && !strcmp(type, "unavailable")) { |
813 ust = offline; | 813 ust = offline; |
814 } | 814 } |
815 | 815 |
816 if ((x = xmlnode_get_tag(packet->x, "status")) != NULL) | |
817 p = xmlnode_get_data(x); | |
818 else | |
819 p = NULL; | |
820 | |
816 r = jidtodisp(from); | 821 r = jidtodisp(from); |
817 if (ust != roster_getstatus(r)) | 822 if (ust != roster_getstatus(r)) |
818 hk_statuschange(r, 0, ust); | 823 hk_statuschange(r, 0, ust, p); |
819 g_free(r); | 824 g_free(r); |
820 /* | |
821 if (x = xmlnode_get_tag(packet->x, "status")) | |
822 if (p = xmlnode_get_data(x)) | |
823 scr_LogPrint("Away msg: %s", p); | |
824 */ | |
825 break; | 825 break; |
826 | 826 |
827 case JPACKET_S10N: | 827 case JPACKET_S10N: |
828 scr_LogPrint("Received (un)subscription packet (type=%s)", | 828 scr_LogPrint("Received (un)subscription packet (type=%s)", |
829 ((type) ? type : "")); | 829 ((type) ? type : "")); |