equal
deleted
inserted
replaced
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 : "")); |