comparison mcabber/src/jabglue.c @ 41:a7c699bd09e0

[/trunk] Changeset 57 by mikael * Fix a bug when jid has uppercase characters...
author mikael
date Tue, 05 Apr 2005 12:26:54 +0000
parents d79ff2ce61c4
children b8bd163be431
comparison
equal deleted inserted replaced
40:d79ff2ce61c4 41:a7c699bd09e0
602 602
603 if (x) { 603 if (x) {
604 p = xmlnode_get_data(x); if (p) ns = p; 604 p = xmlnode_get_data(x); if (p) ns = p;
605 605
606 if (ns) { 606 if (ns) {
607 //scr_LogPrint("New status: %s (%s)", ns, from);
608 if (!strcmp(ns, "away")) ust = away; 607 if (!strcmp(ns, "away")) ust = away;
609 else if (!strcmp(ns, "dnd")) ust = dontdisturb; 608 else if (!strcmp(ns, "dnd")) ust = dontdisturb;
610 else if (!strcmp(ns, "xa")) ust = notavail; 609 else if (!strcmp(ns, "xa")) ust = notavail;
611 else if (!strcmp(ns, "chat")) ust = freeforchat; 610 else if (!strcmp(ns, "chat")) ust = freeforchat;
612 } 611 }
613 } 612 }
614 613
615 if (type && !strcmp(type, "unavailable")) { 614 if (type && !strcmp(type, "unavailable")) {
616 //scr_LogPrint("New status: unavailable/offline");
617 ust = offline; 615 ust = offline;
618 } 616 }
617 //scr_LogPrint("New status: ust=%d (%s)", ust, from);
619 618
620 bud_SetBuddyStatus(jidtodisp(from), ust); 619 bud_SetBuddyStatus(jidtodisp(from), ust);
621 /* 620 /*
622 if (x = xmlnode_get_tag(packet->x, "status")) 621 if (x = xmlnode_get_tag(packet->x, "status"))
623 if (p = xmlnode_get_data(x)) 622 if (p = xmlnode_get_data(x))