Changeset 3907 for trunk/console

Show
Ignore:
Timestamp:
09/25/04 00:44:58 (4 years ago)
Author:
dreamforce2
Message:

- only send the message when we got a single dot on a line,

don't send when we got "..." or something like this.

- fixes SF bug 968508

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/console/src/console.cpp

    r3802 r3907  
    24452445      getyx(winMain->Win(), yp, nLinePos[m_nCon]); 
    24462446      *winMain << '\n'; 
    2447       // Check if the line started with a '.' 
     2447      // Check if the line only contains a '.' 
    24482448      sz[n] = '\0'; 
    24492449      char *szNL = strrchr(sz, '\n'); 
     
    24522452      else 
    24532453        szNL++; 
    2454       if ( *szNL == '.' || *szNL == ',' ) 
     2454      if ( ( *szNL == '.' || *szNL == ',' ) && strlen( szNL ) == 1) 
    24552455        return szNL; 
    24562456