Changeset 172aa37f


Ignore:
Timestamp:
2014-02-28T00:53:43Z (10 years ago)
Author:
dequis <dx@…>
Branches:
master
Children:
cb90dc9
Parents:
489847f
Message:

Word wrapping for group chat mesages (Ticket #1131)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • irc_im.c

    r489847f r172aa37f  
    626626        irc_user_t *iu = bu->ui_data;
    627627        irc_channel_t *ic = c->ui_data;
    628         char *ts = NULL;
     628        char *wrapped, *ts = NULL;
    629629       
    630630        if( ic == NULL )
     
    634634                ts = irc_format_timestamp( irc, sent_at );
    635635       
    636         irc_send_msg( iu, "PRIVMSG", ic->name, msg, ts );
     636        wrapped = word_wrap( msg, 425 );
     637        irc_send_msg( iu, "PRIVMSG", ic->name, wrapped, ts );
    637638        g_free( ts );
    638639       
Note: See TracChangeset for help on using the changeset viewer.