Changes in / [019c031:500a1b6]


Ignore:
Files:
1 added
16 edited

Legend:

Unmodified
Added
Removed
  • bitlbee.c

    r019c031 r500a1b6  
    165165                return FALSE;
    166166        }
    167        
    168         /* Very naughty, go read the RFCs! >:) */
    169         if( irc->readbuffer && ( strlen( irc->readbuffer ) > 1024 ) )
    170         {
    171                 log_message( LOGLVL_ERROR, "Maximum line length exceeded." );
    172                 irc_free( irc );
    173                 return FALSE;
    174         }
    175        
     167               
    176168        return TRUE;
    177169}
  • bitlbee.h

    r019c031 r500a1b6  
    3030
    3131#define PACKAGE "BitlBee"
    32 #define BITLBEE_VERSION "1.0"
     32#define BITLBEE_VERSION "1.0pre"
    3333#define VERSION BITLBEE_VERSION
    3434
  • configure

    r019c031 r500a1b6  
    5757--strip=0/1     Disable/enable binary stripping         $strip
    5858
     59--flood=0/1     Flood protection                        $flood
    5960--ipv6=0/1      IPv6 socket support                     $ipv6
    6061
     
    286287
    287288if [ "$flood" = 1 ]; then
    288         # echo '#define FLOOD_SEND' >> config.h
    289         echo 'Flood protection is disabled in this release because of too many bugs.' 2> /dev/stderr
    290         rm config.h
    291         rm Makefile.settings
    292         exit 1
     289        echo '#define FLOOD_SEND' >> config.h
    293290fi
    294291
     
    348345case "$arch" in
    349346Linux )
     347        echo 'Linux.'
    350348;;
    351349GNU/* )
     350        echo 'Debian with non-Linux kernel?'
    352351;;
    353352*BSD )
     353        echo '*BSD.'
    354354        echo 'EFLAGS+=-liconv' >> Makefile.settings;
    355355;;
    356356SunOS )
     357        echo 'Solaris.'
    357358        echo 'EFLAGS+=-lresolv -lnsl -lsocket' >> Makefile.settings
    358359        echo 'STRIP=\# skip strip' >> Makefile.settings
     
    360361;;
    361362Darwin )
     363        echo 'Darwin/Mac OS X.'
    362364        echo 'EFLAGS+=-liconv' >> Makefile.settings;
    363365;;
    364366IRIX )
     367        echo 'IRIX.'
    365368;;
    366369CYGWIN* )
     
    368371;;
    369372* )
    370         echo 'We haven'\''t tested BitlBee on many platforms yet, yours is untested. YMMV.'
    371         echo 'Please report any problems at http://bugs.bitlbee.org/.'
     373        echo 'We haven'\''t tested BitlBee on many platforms yet, yours is untested. YMMV. Please report any problems to <wilmer@gaast.net>.'
    372374;;
    373375esac
     
    392394fi
    393395
    394 #if [ "$flood" = "0" ]; then
    395 #       echo '  Flood protection disabled.';
    396 #else
    397 #       echo '  Flood protection enabled.';
    398 #fi
     396if [ "$flood" = "0" ]; then
     397        echo '  Flood protection disabled.';
     398else
     399        echo '  Flood protection enabled.';
     400fi
    399401
    400402if [ -n "$protocols" ]; then
  • doc/AUTHORS

    r019c031 r500a1b6  
    44        Main developer
    55
    6 Jelmer 'ctrlsoft' Vernooij <jelmer@samba.org>
     6Jelmer 'ctrlsoft' Vernooij <jelmer@nl.linux.org>
    77        Documentation, general hacking, Win32 port
    88
  • doc/CHANGES

    r019c031 r500a1b6  
    1111  handlers for headline messages (which allows you to use RSS-to-Jabber
    1212  gateways).
    13 - Lowered the line splitting limit a bit to fix data loss issues.
    14 - The $proto($handle) format used for messages specific to one IM-connection
    15   now only include the ($handle) part when there's more than one $proto-
    16   connection.
    17 - Fix for a crash-bug on broken Jabber/SSL connections.
    18 - Incoming typing notifications now also come in as CTCP TYPING messages, for
    19   better consistency. Don't forget to update your scripts!
    20 - AIM typing notifications are supported now.
    21 - Jabber module only accepts ports 5220-5229 now, to prevent people from
    22   abusing it as a port scanner. We aren't aware of any Jabber server that
    23   runs on other ports than those. If you are, please warn us.
    24 - Send flood protection can't be enabled anymore. It was disabled by default
    25   for a good reason for some time already, but some package maintainers
    26   turned it back on while it's way too unreliable and trigger-happy to be
    27   used.
    28 - Removed TODO file, the current to-do list is always in the on-line bug
    29   tracking system.
    30 - Fixed a potential DoS bug in input handling.
    31 
    32 Finished 4 Dec 2005
     13
     14Finished ...
    3315
    3416Version 0.99:
  • doc/FAQ

    r019c031 r500a1b6  
    3939
    4040Q: When is $random_feature going to be implemented?
    41 A: It depends on the feature. We keep a list of all wishlist "bugs" in our
    42    Bug Tracking system at http://bugs.bitlbee.org/
     41A: Please do consult doc/TODO (preferably in a development snapshot, which
     42   is more up-to-date than a TODO in a release version) before asking.
     43   Please also check the documentation. You'd not be the first one to request
     44   a feature which already exists!
     45   
     46   If your fabulous feature seems not to be requested before, just join
     47   #bitlbee on irc.oftc.net and tell us the news.
     48   
     49   If your feature request is already in the TODO list, of course you can
     50   still request it again/make us know that you'd like to see the feature as
     51   well. But when the feature is in the "post-1.0" list, it's probably not
     52   going to help. Most of the features in this list are low-priority because
     53   we (the developers) don't need (or even want) them. (File transfers are a
     54   good example here.)
     55   Hence, they'll only be implemented when we really got too much spare
     56   time. Obviously, if you're willing to help (i.e. submit a patch), you're
     57   always welcome.
    4358
    4459Q: The messages I send and/or receive look weird. I see weird characters and
     
    4661   non-ASCII characters!
    4762A: You probably have to change some settings. To get rid of HTML in messages,
    48    see "help set strip_html". If you seem to have problems with your charset,
    49    see "help set charset".
    50    
    51    Although actually most of these problems should be gone by now. So if you
    52    can't get things to work well, you might have found a bug.
     63   see "help set html". If you seem to have problems with your charset, see
     64   "help set charset".
    5365
    5466Q: Is BitlBee forked from Gaim?
  • doc/README

    r019c031 r500a1b6  
    108108See utils/bitlbeed.c for more information about the program.
    109109
    110 Just a little note: Now that we reach version 1.0, this shouldn't be that
    111 much of an issue anymore. However, on a public server, especially if you
    112 also use it for other things, it can't hurt to protect yourself against
    113 possible problems.
     110Just a little note: We run our public server im.bitlbee.org for a couple of
     111months now, and so far we haven't experienced this problem yet. The only
     112BitlBee processes killed because of CPU-time overuse were running for a long
     113time already, they were usually killed during the MSN login process (which
     114is quite CPU-time consuming).
    114115
    115116
     
    144145You can find new releases of BitlBee at:
    145146http://www.bitlbee.org/
    146 
    147 The bug tracking system:
    148 http://bugs.bitlbee.org/
    149 
    150 Our version control system is Bazaar-NG. Our repository is at:
    151 http://code.bitlbee.org/
    152147
    153148
     
    192187        BitlBee - An IRC to other chat networks gateway
    193188                  <http://www.bitlbee.org/>
    194         Copyright (C) 2002-2005  Wilmer van der Gaast <wilmer@gaast.net>
     189        Copyright (C) 2002-2004  Wilmer van der Gaast <wilmer@gaast.net>
    195190                                 and others
  • doc/user-guide/user-guide.xml

    r019c031 r500a1b6  
    2121
    2222        <legalnotice id="legalnotice">
     23     <para>
     24         Permission is granted to copy, distribute and/or modify this
     25         document under the terms of the <ulink type="help"
     26         url="gnome-help:fdl"><citetitle>GNU Free Documentation
     27         License</citetitle></ulink>, Version 1.1 or any later version
     28         published by the Free Software Foundation with no Invariant
     29         Sections, no Front-Cover Texts, and no Back-Cover Texts. You
     30         may obtain a copy of the <citetitle>GNU Free Documentation
     31         License</citetitle> from the Free Software Foundation by
     32         visiting <ulink type="http" url="http://www.fsf.org">their
     33         Web site</ulink> or by writing to: Free Software Foundation,
     34         Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
     35         USA.
     36       </para>
    2337    </legalnotice>
    2438
    2539   <releaseinfo>
    26                 This is the BitlBee User Guide. For now, the on-line help is
    27                 the most up-to-date documentation. Although this document shares
    28                 some parts with the on-line help system, other parts might be
    29                 very outdated.
     40                This is the initial release of the BitlBee User Guide.
    3041   </releaseinfo>
    3142
  • irc.c

    r019c031 r500a1b6  
    15101510                        {
    15111511                                irc_write( irc, ":%s!%s@%s %s %s :%s%s", u->nick, u->user, u->host,
    1512                                            type, to, prefix ? prefix : "", line );
     1512                                           type, to, prefix, line );
    15131513                        }
    15141514                        line = s + 1;
  • protocols/jabber/jabber.c

    r019c031 r500a1b6  
    2222 */
    2323
     24#ifdef HAVE_CONFIG_H
     25#include "config.h"
     26#endif
     27
    2428#ifndef _WIN32
    2529#include <sys/utsname.h>
     
    5559#define DEFAULT_PORT 5222
    5660#define DEFAULT_PORT_SSL 5223
    57 #define JABBER_PORT_MIN 5220
    58 #define JABBER_PORT_MAX 5229
    5961
    6062#define JABBER_GROUP "Friends"
     
    539541        gjconn gjc;
    540542       
     543        if (!g_slist_find(get_connections(), gc)) {
     544                ssl_disconnect(source);
     545                return;
     546        }
     547       
    541548        jd = gc->proto_data;
    542549        gjc = jd->gjc;
     
    544551        if (source == NULL) {
    545552                STATE_EVT(JCONN_STATE_OFF)
    546                 return;
    547         }
    548        
    549         if (!g_slist_find(get_connections(), gc)) {
    550                 ssl_disconnect(source);
    551553                return;
    552554        }
     
    587589        else if (port == -1 && ssl)
    588590                port = DEFAULT_PORT_SSL;
    589         else if (port < JABBER_PORT_MIN || port > JABBER_PORT_MAX) {
    590                 serv_got_crap(GJ_GC(gjc), "For security reasons, the Jabber port number must be in the %d-%d range.", JABBER_PORT_MIN, JABBER_PORT_MAX);
    591                 STATE_EVT(JCONN_STATE_OFF)
    592                 return;
    593         }
    594591       
    595592        if (server == NULL)
  • protocols/nogaim.c

    r019c031 r500a1b6  
    452452void do_error_dialog( struct gaim_connection *gc, char *msg, char *title )
    453453{
    454         if( msg && title )
    455                 serv_got_crap( gc, "Error: %s: %s", title, msg );
    456         else if( msg )
    457                 serv_got_crap( gc, "Error: %s", msg );
    458         else if( title )
    459                 serv_got_crap( gc, "Error: %s", title );
    460         else
    461                 serv_got_crap( gc, "Error" );
     454        serv_got_crap( gc, "Error: %s", msg );
    462455}
    463456
     
    744737                /* If there's a newline/space in this string, split up there,
    745738                   looks a bit prettier. */
    746                 if( ( nl = strrchr( msg, '\n' ) ) || ( nl = strrchr( msg, ' ' ) ) )
     739                if( ( nl = strrchr( msg, '\n' ) ) || ( nl = strchr( msg, ' ' ) ) )
    747740                {
    748741                        msg[425] = tmp;
     
    776769       
    777770        if( ( u = user_findhandle( gc, handle ) ) )
    778                 irc_privmsg( gc->irc, u, "PRIVMSG", gc->irc->nick, NULL, "\1TYPING 1\1" );
     771                irc_msgfrom( gc->irc, u->nick, "\1TYPING 1\1" );
    779772}
    780773
  • protocols/proxy.c

    r019c031 r500a1b6  
    114114}
    115115
    116 static void gaim_io_connected(gpointer data, gint source, GaimInputCondition cond)
     116static void no_one_calls(gpointer data, gint source, GaimInputCondition cond)
    117117{
    118118        struct PHB *phb = data;
     
    163163        if (connect(fd, (struct sockaddr *)sin, sizeof(*sin)) < 0) {
    164164                if (sockerr_again()) {
    165                         phb->inpa = gaim_input_add(fd, GAIM_INPUT_WRITE, gaim_io_connected, phb);
     165                        phb->inpa = gaim_input_add(fd, GAIM_INPUT_WRITE, no_one_calls, phb);
    166166                        phb->fd = fd;
    167167                } else {
  • protocols/yahoo/crypt.c

    r019c031 r500a1b6  
    2222 * already had. isn't that lovely. people should just use linux or
    2323 * freebsd, crypt works properly on those systems. i hate solaris */
     24
     25#if HAVE_CONFIG_H
     26#  include <config.h>
     27#endif
    2428
    2529#if HAVE_STRING_H
  • protocols/yahoo/libyahoo2.c

    r019c031 r500a1b6  
    4343 *
    4444 */
     45
     46#if HAVE_CONFIG_H
     47# include <config.h>
     48#endif
    4549
    4650#ifndef _WIN32
  • protocols/yahoo/yahoo_httplib.c

    r019c031 r500a1b6  
    1919 *
    2020 */
     21
     22#if HAVE_CONFIG_H
     23# include <config.h>
     24#endif
    2125
    2226#include <stdio.h>
  • protocols/yahoo/yahoo_util.c

    r019c031 r500a1b6  
    1919 *
    2020 */
     21
     22#if HAVE_CONFIG_H
     23# include <config.h>
     24#endif
    2125
    2226#if STDC_HEADERS
Note: See TracChangeset for help on using the changeset viewer.