Changeset 834ff44


Ignore:
Timestamp:
2005-11-17T14:37:59Z (19 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
e3a0e7e
Parents:
685c4ef
Message:

Closing #14: Milisecond precision is now possible for the buddy_sendbuffer.

Files:
6 edited

Legend:

Unmodified
Added
Removed
  • doc/CHANGES

    r685c4ef r834ff44  
    33- QUIT command now works before logging in. (Mainly an RFC-compliancy fix.)
    44- Hopefully slightly clearer handling of buddy add requests.
     5- set buddy_sendbuffer_delay now also supports milisecond precision.
    56
    67Finished ...
  • doc/user-guide/commands.xml

    r685c4ef r834ff44  
    462462
    463463        <bitlbee-setting name="buddy_sendbuffer_delay" type="integer">
    464                 <description>
    465 
    466                         <para>
    467                                 Tell BitlBee after how many seconds a buffered message should be sent.
     464                <default>200</default>
     465
     466                <description>
     467
     468                        <para>
     469                                Tell BitlBee after how many (mili)seconds a buffered message should be sent. Values greater than 5 will be interpreted as miliseconds, 5 and lower as seconds.
    468470                        </para>
    469471
  • doc/user-guide/help.txt

    r685c4ef r834ff44  
    437437?set buddy_sendbuffer_delay
    438438Type: integer
    439 Default:
    440 
    441 Tell BitlBee after how many seconds a buffered message should be sent.
     439Default: 200
     440
     441Tell BitlBee after how many (mili)seconds a buffered message should be sent. Values greater than 5 will be interpreted as miliseconds, 5 and lower as seconds.
    442442
    443443See also the buddy_sendbuffer setting.
  • doc/user-guide/user-guide.html

    r685c4ef r834ff44  
    332332                                Please note that if you remove a buddy from your list (or if the connection to that user drops) and there's still data in the buffer, this data will be lost. BitlBee will not try to send the message to the user in those cases.
    333333                        </p></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="set_buddy_sendbuffer_delay"></a>buddy_sendbuffer_delay</h2></div></div></div><table class="simplelist" border="0" summary="Simple list"><tr><td>Type: integer</td></tr></table><p>
    334                                 Tell BitlBee after how many seconds a buffered message should be sent.
     334                                Tell BitlBee after how many (mili)seconds a buffered message should be sent. Values greater than 5 will be interpreted as miliseconds, 5 and lower as seconds.
    335335                        </p><p>
    336336                                See also the <span class="emphasis"><em>buddy_sendbuffer</em></span> setting.
  • doc/user-guide/user-guide.txt

    r685c4ef r834ff44  
    801801Type: integer
    802802
    803 Tell BitlBee after how many seconds a buffered message should be sent.
     803Tell BitlBee after how many (mili)seconds a buffered message should be sent.
     804Values greater than 5 will be interpreted as miliseconds, 5 and lower as
     805seconds.
    804806
    805807See also the buddy_sendbuffer setting.
  • irc.c

    r685c4ef r834ff44  
    115115        set_add( irc, "auto_reconnect_delay", "300", set_eval_int );
    116116        set_add( irc, "buddy_sendbuffer", "false", set_eval_bool );
    117         set_add( irc, "buddy_sendbuffer_delay", "1", set_eval_int );
     117        set_add( irc, "buddy_sendbuffer_delay", "200", set_eval_int );
    118118        set_add( irc, "charset", "iso8859-1", set_eval_charset );
    119119        set_add( irc, "debug", "false", set_eval_bool );
     
    14281428        if( set_getint( irc, "buddy_sendbuffer" ) && set_getint( irc, "buddy_sendbuffer_delay" ) > 0 )
    14291429        {
     1430                int delay;
     1431               
    14301432                if( u->sendbuf_len > 0 && u->sendbuf_flags != flags)
    14311433                {
     
    14511453                strcat( u->sendbuf, "\n" );
    14521454               
     1455                delay = set_getint( irc, "buddy_sendbuffer_delay" );
     1456                if( delay <= 5 )
     1457                        delay *= 1000;
     1458               
    14531459                if( u->sendbuf_timer > 0 )
    14541460                        g_source_remove( u->sendbuf_timer );
    1455                 u->sendbuf_timer = g_timeout_add( set_getint( irc, "buddy_sendbuffer_delay" ) * 1000,
    1456                                                   buddy_send_handler_delayed, u );
     1461                u->sendbuf_timer = g_timeout_add( delay, buddy_send_handler_delayed, u );
    14571462               
    14581463                return( 1 );
Note: See TracChangeset for help on using the changeset viewer.