[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Ayttm-commits] CVS: ayttm/modules/icq-toc/libtoc libtoc.c,1.11,1.12
From: |
Colin Leroy <address@hidden> |
Subject: |
[Ayttm-commits] CVS: ayttm/modules/icq-toc/libtoc libtoc.c,1.11,1.12 |
Date: |
Thu, 27 Mar 2003 09:15:18 -0500 |
Update of /cvsroot/ayttm/ayttm/modules/icq-toc/libtoc
In directory subversions:/tmp/cvs-serv19661/modules/icq-toc/libtoc
Modified Files:
libtoc.c
Log Message:
atch error on NEW_BUDDY_REPLY2
Index: libtoc.c
===================================================================
RCS file: /cvsroot/ayttm/ayttm/modules/icq-toc/libtoc/libtoc.c,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -r1.11 -r1.12
--- libtoc.c 26 Mar 2003 19:27:56 -0000 1.11
+++ libtoc.c 27 Mar 2003 14:15:15 -0000 1.12
@@ -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);
+ icqtoc_error_message(message);
+ }
+ }
else if(!strcmp(c, "ERROR"))
{
icqtoc_error_message(parse_error(buff+6));
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Ayttm-commits] CVS: ayttm/modules/icq-toc/libtoc libtoc.c,1.11,1.12,
Colin Leroy <address@hidden> <=