comparison mcabber/src/jabglue.c @ 40:d79ff2ce61c4

[/trunk] Changeset 56 by mikael * Log changes
author mikael
date Mon, 04 Apr 2005 20:59:45 +0000
parents 1441ba37a5c1
children a7c699bd09e0
comparison
equal deleted inserted replaced
39:416fd026d76d 40:d79ff2ce61c4
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); 607 //scr_LogPrint("New status: %s (%s)", ns, from);
608 if (!strcmp(ns, "away")) ust = away; 608 if (!strcmp(ns, "away")) ust = away;
609 else if (!strcmp(ns, "dnd")) ust = dontdisturb; 609 else if (!strcmp(ns, "dnd")) ust = dontdisturb;
610 else if (!strcmp(ns, "xa")) ust = notavail; 610 else if (!strcmp(ns, "xa")) ust = notavail;
611 else if (!strcmp(ns, "chat")) ust = freeforchat; 611 else if (!strcmp(ns, "chat")) ust = freeforchat;
612 } 612 }
613 } 613 }
614 614
615 if (type && !strcmp(type, "unavailable")) { 615 if (type && !strcmp(type, "unavailable")) {
616 scr_LogPrint("New status: unavailable/offline"); 616 //scr_LogPrint("New status: unavailable/offline");
617 ust = offline; 617 ust = offline;
618 } 618 }
619 619
620 bud_SetBuddyStatus(jidtodisp(from), ust); 620 bud_SetBuddyStatus(jidtodisp(from), ust);
621 /* 621 /*