Changes in / [aea22cd:3864c08]


Ignore:
Files:
10 edited

Legend:

Unmodified
Added
Removed
  • Makefile

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

    raea22cd r3864c08  
    1919libevent='/usr/'
    2020pidfile='/var/run/bitlbee.pid'
    21 ipcsocket='/var/run/bitlbee.sock'
     21ipcsocket=''
    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
    7069
    7170--msn=0/1       Disable/enable MSN part                 $msn
  • doc/user-guide/misc.xml

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

    raea22cd r3864c08  
    7272</para>
    7373
    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>
     74<para>
     75Finally, 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>
    7577
    7678<para>
  • ipc.c

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

    raea22cd r3864c08  
    193193}
    194194
    195 static 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;
     195static 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;
    199199        const char *dst;
    200200        char *prefix = NULL;
    201201        char *wrapped, *ts = NULL;
    202 
     202        char *msg = g_strdup( msg_ );
     203        GSList *l;
     204       
    203205        if( sent_at > 0 && set_getbool( &irc->b->set, "display_timestamps" ) )
    204206                ts = irc_format_timestamp( irc, sent_at );
    205207       
    206         dst = irc_user_msgdest(iu);
    207         if(dst != irc->user->nick) {
     208        dst = irc_user_msgdest( iu );
     209        if( dst != irc->user->nick )
     210        {
    208211                /* if not messaging directly, call user by name */
    209212                prefix = g_strdup_printf( "%s%s%s", irc->user->nick, set_getstr( &bee->set, "to_char" ), ts ? : "" );
    210         } else {
     213        }
     214        else
     215        {
    211216                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 
    223 static 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;
    226         char *msg = g_strdup( msg_ );
    227         GSList *l;
     217                ts = NULL;      /* don't double-free */
     218        }
    228219       
    229220        for( l = irc_plugins; l; l = l->next )
     
    256247        }
    257248       
    258     bee_irc_msg_from_user( iu, msg, sent_at );
    259 
     249        wrapped = word_wrap( msg, 425 );
     250        irc_send_msg( iu, "PRIVMSG", dst, wrapped, prefix );
     251       
     252        g_free( wrapped );
     253        g_free( prefix );
    260254        g_free( msg );
     255        g_free( ts );
     256       
    261257        return TRUE;
    262258}
  • irc_send.c

    raea22cd r3864c08  
    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. */
    112115const char *irc_user_msgdest( irc_user_t *iu )
    113116{
  • protocols/oscar/oscar.c

    raea22cd r3864c08  
    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                        }
    21042108                        else
    21052109                        {
  • protocols/twitter/twitter.h

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

    raea22cd r3864c08  
    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
    729736        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;
    730741                return;
    731742        }
Note: See TracChangeset for help on using the changeset viewer.