ayttm-commits
[Top][All Lists]
Advanced

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

[Ayttm-commits] CVS: ayttm/src chat_window.c,1.44,1.45


From: Colin Leroy <address@hidden>
Subject: [Ayttm-commits] CVS: ayttm/src chat_window.c,1.44,1.45
Date: Fri, 31 Jan 2003 08:05:35 -0500

Update of /cvsroot/ayttm/ayttm/src
In directory subversions:/tmp/cvs-serv3746/src

Modified Files:
        chat_window.c 
Log Message:
Try to fix this conversation restore thingy once again



Index: chat_window.c
===================================================================
RCS file: /cvsroot/ayttm/ayttm/src/chat_window.c,v
retrieving revision 1.44
retrieving revision 1.45
diff -u -r1.44 -r1.45
--- chat_window.c       30 Jan 2003 14:41:47 -0000      1.44
+++ chat_window.c       31 Jan 2003 13:05:31 -0000      1.45
@@ -1511,12 +1511,20 @@
                        endreached = TRUE;          
                        break;
                } else {
+                       int has_space = 0, i=0;
                        strip_html(buff); /*better safe than sorry */
                        strcpy(buff2, buff);
 
                        token = strtok(buff2,":");
-
-                       if(token && (strcmp(buff,token) != 0)) {
+                       while (token && token[i]) {
+                               if(isspace(token[i])) {
+                                       has_space=1;
+                                       break;
+                               }
+                               i++;
+                       }
+                       
+                       if(token && !has_space && (strcmp(buff,token) != 0)) {
                                /* not happy with this if statement at all! */
                                
if(((strlen(token)==3)&&isdigit((int)token[1])&&isdigit(token[2]))
                                || ((strlen(token)==2) && 
isdigit((int)token[1]))) {





reply via email to

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