ayttm-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Ayttm-commits] CVS: ayttm/modules/yahoo2 yahoo.c,1.38,1.39


From: Philip S Tellis <address@hidden>
Subject: [Ayttm-commits] CVS: ayttm/modules/yahoo2 yahoo.c,1.38,1.39
Date: Wed, 05 Feb 2003 10:23:30 -0500

Update of /cvsroot/ayttm/ayttm/modules/yahoo2
In directory subversions:/tmp/cvs-serv20140/modules/yahoo2

Modified Files:
        yahoo.c 
Log Message:
support for modifying addressbook in yahoo

Index: yahoo.c
===================================================================
RCS file: /cvsroot/ayttm/ayttm/modules/yahoo2/yahoo.c,v
retrieving revision 1.38
retrieving revision 1.39
diff -u -r1.38 -r1.39
--- yahoo.c     31 Jan 2003 13:30:42 -0000      1.38
+++ yahoo.c     5 Feb 2003 15:23:27 -0000       1.39
@@ -1864,10 +1864,12 @@
        char * tmp;
        int i;
 
-       if(bud->yab_entry && !strcmp(bud->real_name, nick))
-               return;
-
        yab = y_new0(struct yab, 1);
+
+       /* if there's already an entry, don't destroy it */
+       if(bud->yab_entry)
+               memcpy(yab, bud->yab_entry, sizeof(yab));
+
        yab->id = bud->id;
 /*     yab->nname = nick; */ /* too many hassles with nicks */
        yab->fname = strdup(nick);





reply via email to

[Prev in Thread] Current Thread [Next in Thread]