Changes in / [3864c08:aea22cd]


Ignore:
Files:
10 edited

Legend:

Unmodified
Added
Removed
  • Makefile

    r3864c08 raea22cd  
    156156$(OTR_PI): %.so: $(SRCDIR)%.c
    157157        @echo '*' Building plugin $@
    158         @$(CC) $(CFLAGS) -fPIC -shared $(LDFLAGS) $< -o $@ $(OTRFLAGS)
     158        @$(CC) $(CFLAGS) $(OTRFLAGS) -fPIC -shared $(LDFLAGS) $< -o $@
    159159
    160160$(SKYPE_PI): $(SRCDIR)protocols/skype/skype.c
  • configure

    r3864c08 raea22cd  
    1919libevent='/usr/'
    2020pidfile='/var/run/bitlbee.pid'
    21 ipcsocket=''
     21ipcsocket='/var/run/bitlbee.sock'
    2222pcdir='$prefix/lib/pkgconfig'
    2323systemlibdirs="/lib /lib64 /usr/lib /usr/lib64 /usr/local/lib /usr/local/lib64"
     
    6767--pidfile=...                                           $pidfile
    6868--config=...                                            $config
     69--ipcsocket=...                                         $ipcsocket
    6970
    7071--msn=0/1       Disable/enable MSN part                 $msn
  • doc/user-guide/misc.xml

    r3864c08 raea22cd  
    191191
    192192<ircexample>
    193         <ircline nick="wilmer">chan &amp;wlm set fill_by account</ircline>
     193        <ircline nick="wilmer">chan set &amp;wlm fill_by account</ircline>
    194194        <ircline nick="root">fill_by = `account'</ircline>
    195         <ircline nick="wilmer">chan &amp;wlm set account msn</ircline>
     195        <ircline nick="wilmer">chan set &amp;wlm account msn</ircline>
    196196        <ircline nick="root">account = `msn'</ircline>
    197197</ircexample>
     
    204204
    205205<ircexample>
    206         <ircline nick="wilmer">chan &amp;offline set show_users offline</ircline>
     206        <ircline nick="wilmer">chan set &amp;offline show_users offline</ircline>
    207207        <ircline nick="root">show_users = `offline'</ircline>
    208208</ircexample>
  • doc/user-guide/quickstart.xml

    r3864c08 raea22cd  
    7272</para>
    7373
    74 <para>
    75 Finally, if you have multiple users with similar names you may use the <emphasis>rename</emphasis> command to make it easier to remember: <emphasis>rename r2d2_ r2d2_aim</emphasis>
    76 </para>
     74<para>Finally, if you have multiple users with similar names you may use the <emphasis>rename</emphasis> command to make it easier to remember: <emphasis>rename r2d2_ r2d2_aim</emphasis>
    7775
    7876<para>
  • ipc.c

    r3864c08 raea22cd  
    909909        int serversock;
    910910
    911         if (!IPCSOCKET || !*IPCSOCKET)
    912                 return 1;
    913 
    914911        /* Clean up old socket files that were hanging around.. */
    915912        if (unlink(IPCSOCKET) == -1 && errno != ENOENT) {
  • irc_im.c

    r3864c08 raea22cd  
    193193}
    194194
    195 static gboolean bee_irc_user_msg( bee_t *bee, bee_user_t *bu, const char *msg_, time_t sent_at )
    196 {
    197         irc_t *irc = bee->ui_data;
    198         irc_user_t *iu = (irc_user_t *) bu->ui_data;
     195static void bee_irc_msg_from_user( irc_user_t *iu, const char *msg, time_t sent_at )
     196{
     197        irc_t *irc = iu->irc;
     198        bee_t *bee = irc->b;
    199199        const char *dst;
    200200        char *prefix = NULL;
    201201        char *wrapped, *ts = NULL;
     202
     203        if( sent_at > 0 && set_getbool( &irc->b->set, "display_timestamps" ) )
     204                ts = irc_format_timestamp( irc, sent_at );
     205       
     206        dst = irc_user_msgdest(iu);
     207        if(dst != irc->user->nick) {
     208                /* if not messaging directly, call user by name */
     209                prefix = g_strdup_printf( "%s%s%s", irc->user->nick, set_getstr( &bee->set, "to_char" ), ts ? : "" );
     210        } else {
     211                prefix = ts;
     212                ts = NULL;      /* don't doulbe-free */
     213        }
     214
     215        wrapped = word_wrap( msg, 425 );
     216        irc_send_msg( iu, "PRIVMSG", dst, wrapped, prefix );
     217       
     218        g_free( wrapped );
     219        g_free( prefix );
     220        g_free( ts );
     221}
     222
     223static gboolean bee_irc_user_msg( bee_t *bee, bee_user_t *bu, const char *msg_, time_t sent_at )
     224{
     225        irc_user_t *iu = (irc_user_t *) bu->ui_data;
    202226        char *msg = g_strdup( msg_ );
    203227        GSList *l;
    204        
    205         if( sent_at > 0 && set_getbool( &irc->b->set, "display_timestamps" ) )
    206                 ts = irc_format_timestamp( irc, sent_at );
    207        
    208         dst = irc_user_msgdest( iu );
    209         if( dst != irc->user->nick )
    210         {
    211                 /* if not messaging directly, call user by name */
    212                 prefix = g_strdup_printf( "%s%s%s", irc->user->nick, set_getstr( &bee->set, "to_char" ), ts ? : "" );
    213         }
    214         else
    215         {
    216                 prefix = ts;
    217                 ts = NULL;      /* don't double-free */
    218         }
    219228       
    220229        for( l = irc_plugins; l; l = l->next )
     
    247256        }
    248257       
    249         wrapped = word_wrap( msg, 425 );
    250         irc_send_msg( iu, "PRIVMSG", dst, wrapped, prefix );
    251        
    252         g_free( wrapped );
    253         g_free( prefix );
     258    bee_irc_msg_from_user( iu, msg, sent_at );
     259
    254260        g_free( msg );
    255         g_free( ts );
    256        
    257261        return TRUE;
    258262}
  • irc_send.c

    r3864c08 raea22cd  
    110110}
    111111
    112 /* Used by some funcs that generate PRIVMSGs to figure out if we're talking to
    113    this person in /query or in a control channel. WARNING: callers rely on
    114    this returning a pointer at irc->user_nick, not a copy of it. */
    115112const char *irc_user_msgdest( irc_user_t *iu )
    116113{
  • protocols/oscar/oscar.c

    r3864c08 raea22cd  
    21022102                                aim_ssi_addbuddies( sess, fr->conn, OSCAR_GROUP, &list, 1, 1 );
    21032103                        }
    2104                         else if( st == 0x0A )
    2105                         {
    2106                                 imcb_error( sess->aux_data, "Buddy %s is already in your list", list );
    2107                         }
    21082104                        else
    21092105                        {
  • protocols/twitter/twitter.h

    r3864c08 raea22cd  
    3939        TWITTER_GOT_TIMELINE = 0x20000,
    4040        TWITTER_GOT_MENTIONS = 0x40000,
    41         TWITTER_DOING_TIMELINE_SLOW = 0x80000,
    4241} twitter_flags_t;
    4342
  • protocols/twitter/twitter_lib.c

    r3864c08 raea22cd  
    727727        gboolean include_mentions = set_getbool(&ic->acc->set, "fetch_mentions");
    728728
    729         if ((td->flags & 0xf0000) == (TWITTER_DOING_TIMELINE | TWITTER_DOING_TIMELINE_SLOW)) {
    730                 imcb_log(ic, "Connection seems to have stalled again.\n"
    731                              "This is a known bug, if you see this happen a lot "
    732                              "please generate some traffic dumps.");
    733                 td->flags &= ~0xf0000;
    734         }
    735 
    736729        if (td->flags & TWITTER_DOING_TIMELINE) {
    737                 /* This shouldn't normally happen at all but I'm currently hunting a bug
    738                    where it does. Instead of having users suffer under it, have a work-
    739                    around with a warning. */
    740                 td->flags |= TWITTER_DOING_TIMELINE_SLOW;
    741730                return;
    742731        }
Note: See TracChangeset for help on using the changeset viewer.