ayttm-commits
[Top][All Lists]
Advanced

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

[Ayttm-commits] CVS: ayttm/modules/aim-toc/libtoc libtoc.c,1.13,1.14


From: Colin Leroy <address@hidden>
Subject: [Ayttm-commits] CVS: ayttm/modules/aim-toc/libtoc libtoc.c,1.13,1.14
Date: Thu, 27 Mar 2003 09:15:18 -0500

Update of /cvsroot/ayttm/ayttm/modules/aim-toc/libtoc
In directory subversions:/tmp/cvs-serv19661/modules/aim-toc/libtoc

Modified Files:
        libtoc.c 
Log Message:
atch error on NEW_BUDDY_REPLY2



Index: libtoc.c
===================================================================
RCS file: /cvsroot/ayttm/ayttm/modules/aim-toc/libtoc/libtoc.c,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -r1.13 -r1.14
--- libtoc.c    26 Mar 2003 19:27:56 -0000      1.13
+++ libtoc.c    27 Mar 2003 14:15:15 -0000      1.14
@@ -1146,6 +1146,34 @@
                g_string_free(string, TRUE);
 
        }
+       else if (!strcmp(c, "NEW_BUDDY_REPLY2"))
+       {
+               char nick[200];
+               char result[20];
+               char message[1024];
+               
+               for(j=0; buff[i] != ':' && j < 200; i++, j++ )
+               {
+                       nick[j] = buff[i];
+               }
+               nick[j] = '\0';
+               i++;
+
+               for(j=0; buff[i] != ':' && j < 20; i++, j++ )
+               {
+                       result[j] = buff[i];
+               }
+               result[j] = '\0';
+               i++;
+               if (!strcmp("auth", result)) {
+                       printf("contact %s need to accept your add.\n", nick);
+               } else if (!strcmp("added", result)) {
+                       printf("contact %s is added\n", nick);
+               } else {
+                       g_snprintf(message, 1024, "Unknown add result for %s: 
%s\n",nick,result);
+                       toc_error_message(message);
+               }
+       }
        else if(!strcmp(c, "ERROR"))
        {
                toc_error_message(parse_error(buff+6));





reply via email to

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