- Timestamp:
- 2005-11-26T02:02:38Z (19 years ago)
- Branches:
- master
- Children:
- dfde8e0
- Parents:
- cb91b72
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/nogaim.c
rcb91b72 r30f248a 645 645 msg = buf; 646 646 647 while( strlen( msg ) > 4 50)647 while( strlen( msg ) > 425 ) 648 648 { 649 649 char tmp, *nl; 650 650 651 tmp = msg[450]; 652 msg[450] = 0; 653 654 /* If there's a newline in this string, split up there so we're not 655 going to split up lines. If there isn't a newline, well, too bad. */ 656 if( ( nl = strrchr( msg, '\n' ) ) ) 651 tmp = msg[425]; 652 msg[425] = 0; 653 654 /* If there's a newline/space in this string, split up there, 655 looks a bit prettier. */ 656 if( ( nl = strrchr( msg, '\n' ) ) || ( nl = strchr( msg, ' ' ) ) ) 657 { 658 msg[425] = tmp; 659 tmp = *nl; 657 660 *nl = 0; 661 } 658 662 659 663 irc_msgfrom( irc, u->nick, msg ); 660 661 msg[450] = tmp;662 664 663 665 /* Move on. */ 664 666 if( nl ) 665 667 { 666 *nl = '\n';668 *nl = tmp; 667 669 msg = nl + 1; 668 670 } 669 671 else 670 672 { 671 msg += 450; 673 msg[425] = tmp; 674 msg += 425; 672 675 } 673 676 }
Note: See TracChangeset
for help on using the changeset viewer.