comparison plugins/jabber/jabber.c @ 1805:caa605e70917

[gaim-migrate @ 1815] i have that sting song, the one they play in the mercedes commercial, stuck in my head. what the hell are the words to that song. committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Sat, 05 May 2001 10:36:08 +0000
parents a94491b828ef
children f173a3e14266
comparison
equal deleted inserted replaced
1804:c7b288ea3892 1805:caa605e70917
726 jc->b = cnv = serv_got_joined_chat(GJ_GC(j), i++, who->user); 726 jc->b = cnv = serv_got_joined_chat(GJ_GC(j), i++, who->user);
727 jd->existing_chats = g_slist_append(jd->existing_chats, jc); 727 jd->existing_chats = g_slist_append(jd->existing_chats, jc);
728 jd->pending_chats = g_slist_remove(jd->pending_chats, jc); 728 jd->pending_chats = g_slist_remove(jd->pending_chats, jc);
729 } else if (!(b = find_buddy(GJ_GC(j), buddy))) { 729 } else if (!(b = find_buddy(GJ_GC(j), buddy))) {
730 b = add_buddy(GJ_GC(j), "Buddies", buddy, buddy); 730 b = add_buddy(GJ_GC(j), "Buddies", buddy, buddy);
731 do_export(NULL, NULL); 731 do_export(GJ_GC(j));
732 } 732 }
733 } 733 }
734 734
735 if (!cnv) { 735 if (!cnv) {
736 resources = b->proto_data; 736 resources = b->proto_data;
852 if (groupname == NULL) 852 if (groupname == NULL)
853 groupname = "Buddies"; 853 groupname = "Buddies";
854 if (strcasecmp(sub, "from") && strcasecmp(sub, "none") && 854 if (strcasecmp(sub, "from") && strcasecmp(sub, "none") &&
855 !(b = find_buddy(GJ_GC(j), buddyname))) { 855 !(b = find_buddy(GJ_GC(j), buddyname))) {
856 debug_printf("adding buddy: %s\n", buddyname); 856 debug_printf("adding buddy: %s\n", buddyname);
857 b = 857 b = add_buddy(GJ_GC(j), groupname, buddyname,
858 add_buddy(GJ_GC(j), groupname, buddyname,
859 name ? name : buddyname); 858 name ? name : buddyname);
860 do_export(0, 0); 859 do_export(GJ_GC(j));
861 } else if (b) { 860 } else if (b) {
862 debug_printf("updating buddy: %s/%s\n", buddyname, name); 861 debug_printf("updating buddy: %s/%s\n", buddyname, name);
863 g_snprintf(b->name, sizeof(b->name), "%s", buddyname); 862 g_snprintf(b->name, sizeof(b->name), "%s", buddyname);
864 g_snprintf(b->show, sizeof(b->show), "%s", 863 g_snprintf(b->show, sizeof(b->show), "%s",
865 name ? name : buddyname); 864 name ? name : buddyname);
879 } 878 }
880 buddyname = g_strdup_printf("%s@%s", who->user, who->server); 879 buddyname = g_strdup_printf("%s@%s", who->user, who->server);
881 if (strcasecmp(sub, "from") && strcasecmp(sub, "none") && 880 if (strcasecmp(sub, "from") && strcasecmp(sub, "none") &&
882 !(b = find_buddy(GJ_GC(j), buddyname))) { 881 !(b = find_buddy(GJ_GC(j), buddyname))) {
883 b = add_buddy(GJ_GC(j), "Buddies", buddyname, name ? name : Jid); 882 b = add_buddy(GJ_GC(j), "Buddies", buddyname, name ? name : Jid);
884 do_export(0, 0); 883 do_export(GJ_GC(j));
885 } 884 }
886 g_free(buddyname); 885 g_free(buddyname);
887 } 886 }
888 887
889 x = xmlnode_get_nextsibling(x); 888 x = xmlnode_get_nextsibling(x);