Changeset b20b32f for protocols/nogaim.c
- Timestamp:
- 2005-11-28T01:14:06Z (18 years ago)
- Branches:
- master
- Children:
- 65e2ce1, cfcc587
- Parents:
- 2cdd8ce (diff), dfde8e0 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/nogaim.c
r2cdd8ce rb20b32f 295 295 { 296 296 va_list params; 297 char text[1024], buf[1024] ;297 char text[1024], buf[1024], acc_id[33]; 298 298 char *msg; 299 account_t *a; 299 300 300 301 va_start( params, format ); … … 312 313 strip_html( msg ); 313 314 314 irc_usermsg( gc->irc, "%s(%s) - %s", gc->prpl->name, gc->username, msg ); 315 /* Try to find a different connection on the same protocol. */ 316 for( a = gc->irc->accounts; a; a = a->next ) 317 if( a->prpl == gc->prpl && a->gc != gc ) 318 break; 319 320 /* If we found one, add the screenname to the acc_id. */ 321 if( a ) 322 g_snprintf( acc_id, 32, "%s(%s)", gc->prpl->name, gc->username ); 323 else 324 g_snprintf( acc_id, 32, "%s", gc->prpl->name ); 325 326 irc_usermsg( gc->irc, "%s - %s", acc_id, msg ); 315 327 } 316 328 … … 706 718 msg = buf; 707 719 708 while( strlen( msg ) > 4 50)720 while( strlen( msg ) > 425 ) 709 721 { 710 722 char tmp, *nl; 711 723 712 tmp = msg[450]; 713 msg[450] = 0; 714 715 /* If there's a newline in this string, split up there so we're not 716 going to split up lines. If there isn't a newline, well, too bad. */ 717 if( ( nl = strrchr( msg, '\n' ) ) ) 724 tmp = msg[425]; 725 msg[425] = 0; 726 727 /* If there's a newline/space in this string, split up there, 728 looks a bit prettier. */ 729 if( ( nl = strrchr( msg, '\n' ) ) || ( nl = strchr( msg, ' ' ) ) ) 730 { 731 msg[425] = tmp; 732 tmp = *nl; 718 733 *nl = 0; 734 } 719 735 720 736 irc_msgfrom( irc, u->nick, msg ); 721 722 msg[450] = tmp;723 737 724 738 /* Move on. */ 725 739 if( nl ) 726 740 { 727 *nl = '\n';741 *nl = tmp; 728 742 msg = nl + 1; 729 743 } 730 744 else 731 745 { 732 msg += 450; 746 msg[425] = tmp; 747 msg += 425; 733 748 } 734 749 } … … 744 759 745 760 if( ( u = user_findhandle( gc, handle ) ) ) 746 irc_ noticefrom( gc->irc, u->nick, "* Typing a message *" );761 irc_msgfrom( gc->irc, u->nick, "\1TYPING 1\1" ); 747 762 } 748 763
Note: See TracChangeset
for help on using the changeset viewer.