ayttm-commits
[Top][All Lists]
Advanced

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

[Ayttm-commits] CVS: ayttm/modules/msn2/libmsn2 msn_core.C,1.3,1.4 msn_


From: Colin Leroy <address@hidden>
Subject: [Ayttm-commits] CVS: ayttm/modules/msn2/libmsn2 msn_core.C,1.3,1.4 msn_core.h,1.2,1.3
Date: Sat, 04 Jan 2003 16:24:28 -0500

Update of /cvsroot/ayttm/ayttm/modules/msn2/libmsn2
In directory subversions:/tmp/cvs-serv5005/modules/msn2/libmsn2

Modified Files:
        msn_core.C msn_core.h 
Log Message:
        * src/add_contact_window.[ch]
                new get_all_accounts(int serviceid) function
        * modules/msn2/msn.C
          modules/msn2/msn_core.[Ch]
                Everything ready to automatically re-add 
                existing contacts to FL and AL if necessary
                - disabled for now but not for long



Index: msn_core.C
===================================================================
RCS file: /cvsroot/ayttm/ayttm/modules/msn2/libmsn2/msn_core.C,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- msn_core.C  31 Dec 2002 11:41:33 -0000      1.3
+++ msn_core.C  4 Jan 2003 21:24:26 -0000       1.4
@@ -240,7 +240,7 @@
 
 void msn_sync_lists(msnconn * conn, int version)
 {
-  syncinfo * info=new syncinfo;
+  syncinfo *info=new syncinfo;
 
   info->serial=version;
 
@@ -252,6 +252,18 @@
   next_trid++;
 }
 
+int is_on_list(char *handle, llist *lst) 
+{
+       llist *olist;
+       userdata *ocontact;
+       for(olist=lst; olist != NULL && olist->data != NULL; olist=olist->next) 
{
+               ocontact = (userdata *)olist->data;
+               if(!strcasecmp(ocontact->username, handle))
+                       return 1;
+       }
+       return 0;
+       
+}
 void msn_syncdata(msnconn * conn, int trid, char ** args, int numargs, 
callback_data * data)
 {
   syncinfo * info=(syncinfo *)data;
@@ -260,8 +272,8 @@
   {
     if(info->serial==atoi(args[2]))
     {
-      delete info;
-      info=NULL;
+    /*  delete info;
+      info=NULL;*/
       msn_del_callback(conn, trid);
       ext_got_info(conn, NULL);
       return;
@@ -350,7 +362,7 @@
     msn_del_callback(conn, trid);
     msn_check_rl(conn, info);
     ext_got_info(conn, info);
-    delete info;
+   /* delete info; */
   }
 }
 

Index: msn_core.h
===================================================================
RCS file: /cvsroot/ayttm/ayttm/modules/msn2/libmsn2/msn_core.h,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- msn_core.h  31 Dec 2002 11:41:33 -0000      1.2
+++ msn_core.h  4 Jan 2003 21:24:26 -0000       1.3
@@ -202,6 +202,8 @@
 
 void msn_sync_lists(msnconn * conn, int version);
 
+int is_on_list(char *handle, llist *lst) ;
+
 #define LST_FL  1
 #define LST_RL  2
 #define LST_AL  4





reply via email to

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