Commit Graph

935 Commits

Author SHA1 Message Date
Kevin Easton
d22a4531d8 Update old email addresses in user-visible messages.
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@206 13b04d17-f746-0410-82c6-800466cd88b0
2012-06-13 12:34:32 +00:00
Tim Cava
46cf14c0da Fix the MKNU command, with suggestions from caf.
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@205 13b04d17-f746-0410-82c6-800466cd88b0
2012-06-07 04:22:17 +00:00
Kevin Easton
3ed7f68d4e Rename include/bitchx to include/options.h. This fixes building on
case-insensitive filesystems like NTFS or HFS+, where it clashes with
the BitchX binary.


git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@204 13b04d17-f746-0410-82c6-800466cd88b0
2012-06-02 14:53:37 +00:00
Kevin Easton
252d1bf004 On systems that support it, supply the AI_ADDRCONFIG flag to getaddrinfo().
This means that we shouldn't try to connect using IPv6 if the local machine
doesn't have an IPv6 address itself.

This also simplifies the IPv6 code in BX_connect_by_number() a bit.


git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@203 13b04d17-f746-0410-82c6-800466cd88b0
2012-06-02 11:38:37 +00:00
Kevin Easton
64605b326c Respin configure for configure.in r201.
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@202 13b04d17-f746-0410-82c6-800466cd88b0
2012-05-31 12:43:57 +00:00
Kevin Easton
fa42be30ae Change configure.in to enable SSL by default, if libssl is present. Can
still be disabled with --without-ssl.


git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@201 13b04d17-f746-0410-82c6-800466cd88b0
2012-05-31 12:40:26 +00:00
Kevin Easton
dd51b53e7d AC_CHECK_LIB() doesn't work to check for Windows API functions due to calling
conventions, so use AC_LINK_IFELSE() instead.


git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@200 13b04d17-f746-0410-82c6-800466cd88b0
2012-05-30 12:26:44 +00:00
Kevin Easton
27c4333ef5 Respin configure and defs.h.in for configure.in r198.
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@199 13b04d17-f746-0410-82c6-800466cd88b0
2012-05-28 13:54:19 +00:00
Kevin Easton
d13eee6683 The Cygwin resolver library doesn't fill out the list of name servers in
res_init() if /etc/resolv.conf doesn't exist, which is usual.

Add code to handle this by calling GetNetworkParams().


git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@198 13b04d17-f746-0410-82c6-800466cd88b0
2012-05-28 13:52:18 +00:00
Kevin Easton
1c2581aea3 Respin configure for configure.in r196.
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@197 13b04d17-f746-0410-82c6-800466cd88b0
2012-05-27 04:43:40 +00:00
Kevin Easton
79625bf516 Define BIND_4_COMPAT everywhere (except OS X, who just _had_ to be different)
and switch to using BIND4 macros (GETSHORT / GETLONG).

Should fix /nslookup on OpenBSD.


git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@196 13b04d17-f746-0410-82c6-800466cd88b0
2012-05-27 04:42:09 +00:00
Kevin Easton
82f7a2ccf2 Use AC_LANG_SOURCE() around argument to AC_LINK_IFELSE(), this means that we
get confdefs.h included in the test.

This should fix the resolver linking issue on OS X.


git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@195 13b04d17-f746-0410-82c6-800466cd88b0
2012-05-27 04:26:36 +00:00
Kevin Easton
6947c0492d Update configure for configure.in r193.
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@194 13b04d17-f746-0410-82c6-800466cd88b0
2012-05-24 13:03:57 +00:00
Kevin Easton
8a9917270c Alter method of finding resolver library name, to hopefully work on OSX.
Now uses AC_LINK_IFELSE() to link a program that calls res_mkquery(),
after defining BIND_8_COMPAT / BIND_4_COMPAT as per misc.c.


git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@193 13b04d17-f746-0410-82c6-800466cd88b0
2012-05-24 13:02:44 +00:00
Kevin Easton
241f3df842 Spin up new configure for configure.in r191.
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@192 13b04d17-f746-0410-82c6-800466cd88b0
2012-05-15 14:32:26 +00:00
Kevin Easton
5b7c84fb55 Rework res_mkquery test, adding test for __res_mkquery to fix problem on
x86-64 platforms reported by snadge.


git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@191 13b04d17-f746-0410-82c6-800466cd88b0
2012-05-15 14:31:05 +00:00
Kevin Easton
43f5288dd4 Update document to remove old supported platforms list and correct old
information about vhosts.


git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@190 13b04d17-f746-0410-82c6-800466cd88b0
2012-05-15 14:29:06 +00:00
Kevin Easton
ab7d59f1f6 Add a length sanity check - just in case there's an implementation out there
that parses AF_UNIX addresses in getaddrinfo() or something.


git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@189 13b04d17-f746-0410-82c6-800466cd88b0
2012-05-15 14:01:42 +00:00
Kevin Easton
ba365bfd54 Fix logic error that can result in a potential crash (when getaddrinfo() fails
and res happened to be NULL).

Also add missing freeaddrinfo() call.


git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@188 13b04d17-f746-0410-82c6-800466cd88b0
2012-05-15 13:29:32 +00:00
Kevin Easton
9ec4f49540 Apply patch from snadge to set BIND_4_COMPAT on OpenBSD. This is similar
to the existing BIND_8_COMPAT fix for OSX.

Oh how I hate the /nslookup function.


git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@187 13b04d17-f746-0410-82c6-800466cd88b0
2012-05-15 13:16:11 +00:00
Kevin Easton
2f79061c0d Partially back out r183, by removing -fPIC from Cygwin builds. It's
unnecessary there and just creates a warning.


git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@186 13b04d17-f746-0410-82c6-800466cd88b0
2012-05-15 12:52:25 +00:00
Kevin Easton
5b95a36896 Rebuilt for aclocal.m4 changes in r183.
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@185 13b04d17-f746-0410-82c6-800466cd88b0
2012-05-15 12:36:51 +00:00
Kevin Easton
e16b8197b0 Change message at end of "make install" to make vicodan happy.
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@184 13b04d17-f746-0410-82c6-800466cd88b0
2012-05-15 12:35:19 +00:00
Kevin Easton
4e53ace4f1 Use -fPIC for building plugins on NetBSD, OpenBSD, FreeBSD, BSDI and Cygwin.
Required for plugins to work on x86-64.

Thanks to snadge for this patch.


git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@183 13b04d17-f746-0410-82c6-800466cd88b0
2012-05-15 12:22:13 +00:00
Kevin Easton
26a62fe7fa Rework the IPV6 verison of BX_ip_to_host() so that it works on BSD (used
by $iptoname() scripting function).


git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@182 13b04d17-f746-0410-82c6-800466cd88b0
2012-05-14 13:56:52 +00:00
Kevin Easton
f035eceb72 Pass the right socket address length to bind() in client connections with
IPv6 enabled.  This fixes an issue reported by packet, where IPv4 conections
don't work on FreeBSD when the client is built with IPv6 support and you
have a local hostname set (with /hostname, -H or IRCHOST).

Also ensure we clear the full size of the 'server' address structure - doesn't
fix a known problem but is a defensive measure.


git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@181 13b04d17-f746-0410-82c6-800466cd88b0
2012-05-13 14:06:53 +00:00
Kevin Easton
35f0400e1f Fix typo.
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@180 13b04d17-f746-0410-82c6-800466cd88b0
2012-05-11 22:00:16 +00:00
Kevin Easton
d029695841 Remove old devel files that shouldn't have been left lying around.
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@179 13b04d17-f746-0410-82c6-800466cd88b0
2012-05-11 12:47:01 +00:00
Kevin Easton
e27169c15e Rebuild for configure.in r177.
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@178 13b04d17-f746-0410-82c6-800466cd88b0
2012-05-11 12:32:51 +00:00
Kevin Easton
0271799a4a Remove check for Linux from IPv6 tests. Replace GLIBC version test with
a generic link test for "native" IPv6.


git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@177 13b04d17-f746-0410-82c6-800466cd88b0
2012-05-11 12:31:31 +00:00
Kevin Easton
5d788560a4 Choose the address length passed to connect() based on the address family.
This fixes making IPv4 connections on BSD when the client is compiled with
IPv6 enabled.

Thanks to brabes on sourceforge and snadge@freenode for originally tracking
this down.


git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@176 13b04d17-f746-0410-82c6-800466cd88b0
2012-05-11 12:22:03 +00:00
Kevin Easton
0219904860 Ensure that real errors from connect() (eg. EINVAL) are detected and
acted on immmediately, even for nonblocking connects.


git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@175 13b04d17-f746-0410-82c6-800466cd88b0
2012-05-11 12:03:10 +00:00
Kevin Easton
8e66eb6653 A few updated quit messages.
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@174 13b04d17-f746-0410-82c6-800466cd88b0
2012-05-10 12:47:51 +00:00
Kevin Easton
972b428e89 Create relative rather than absolute link to BitchX executable at
install time.


git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@173 13b04d17-f746-0410-82c6-800466cd88b0
2012-05-10 12:42:25 +00:00
Kevin Easton
68a84226de Rebuild for configure.in r170.
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@172 13b04d17-f746-0410-82c6-800466cd88b0
2012-05-10 12:41:24 +00:00
Kevin Easton
c9fa7b0ce1 Remove unused sys/syslimits.h include.
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@171 13b04d17-f746-0410-82c6-800466cd88b0
2012-05-10 12:31:04 +00:00
Kevin Easton
eb964e1c52 Remove BitchX.spec and gtkBitchX.spec - these are obsolete now. A new
BitchX.spec will be added later.


git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@170 13b04d17-f746-0410-82c6-800466cd88b0
2012-05-10 12:22:22 +00:00
Kevin Easton
822522affa Fix test so that sig.inc isn't built if sys_siglist, _sys_siglist or strsignal
is available.

In the long-run sig.inc should be built by a Makefile target.


git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@169 13b04d17-f746-0410-82c6-800466cd88b0
2012-05-10 09:16:25 +00:00
Kevin Easton
5d1953946e Use the correct dependencies when checking for net/if.h, arpa/inet.h and resolv.h
(fixes a nasty configure spew on FreeBSD, reported by flashback).

Add check for sys/socket.h, replace unused checks for netinet/in_systm.h and 
sys/in_system.h with a check for netinet/in.h.  Remove unused check for
sys/syslimits.h.


git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@168 13b04d17-f746-0410-82c6-800466cd88b0
2012-05-10 09:12:27 +00:00
Kevin Easton
de771dac56 Simplify install target for translation files and scripts. No longer creates
bxglobal.old backup of bxglobal file at install time.


git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@167 13b04d17-f746-0410-82c6-800466cd88b0
2012-05-08 15:41:09 +00:00
Kevin Easton
3bbe082f16 Fix aim and nap plugin Makefiles so that they build compat.o in the right
place when building out-of-tree.  Reported by nyet.


git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@166 13b04d17-f746-0410-82c6-800466cd88b0
2012-05-08 15:20:39 +00:00
Kevin Easton
b55825ab99 Rebuild configure from configure.in rev 164.
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@165 13b04d17-f746-0410-82c6-800466cd88b0
2012-05-08 14:35:53 +00:00
Kevin Easton
7ee26d4ed3 Change the install* targets in the Makefiles to honour DESTDIR. This
makes packaging the client for .deb and .rpm easier.

Reported separately by nyet and VICODAN.


git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@164 13b04d17-f746-0410-82c6-800466cd88b0
2012-05-08 14:34:25 +00:00
Kevin Easton
cb0c2aabc2 Improve error handling in /detach - will now soft-fail the detach instead
of killing the whole client.


git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@163 13b04d17-f746-0410-82c6-800466cd88b0
2012-04-30 08:05:04 +00:00
Kevin Easton
3090365354 Change connect_by_number() so that SERVICE_SERVER sockets are always bound to
IPv4 even on an IPv6-enabled client.  This fixes /detach and wserv when
compiling with --enable-ipv6.

This does also mean that the internal identd, if used, won't listen on IPv6
either.  This isn't a problem yet, since the internal identd is used only on
WINNT and we don't support IPv6 there yet.

This will also need tweaking to support initiating DCC-over-IPv6.

Thanks to snadge and packet for working on this bug.


git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@162 13b04d17-f746-0410-82c6-800466cd88b0
2012-04-29 12:15:57 +00:00
Kevin Easton
10d5ab5a18 Changelog update for r160 change.
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@161 13b04d17-f746-0410-82c6-800466cd88b0
2012-03-06 12:12:58 +00:00
Kevin Easton
97174632dc Add explicit default value for NICK_COMPLETION_CHAR.
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@160 13b04d17-f746-0410-82c6-800466cd88b0
2012-03-06 11:14:51 +00:00
Kevin Easton
a9e1608865 Compile wterm.o, bircsig.o, wnetwork.o, bcompat.o, sterm.o directly
from source files without symlinks.


git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@159 13b04d17-f746-0410-82c6-800466cd88b0
2012-03-06 11:11:54 +00:00
Kevin Easton
dd6bb7752b Update copyright notice and add COPYRIGHT file to top-level of archive.
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@158 13b04d17-f746-0410-82c6-800466cd88b0
2012-02-29 22:56:23 +00:00
Kevin Easton
b0f8c03dec Cleanup ci_alist_hash() and cs_alist_hash(), fixes a compile warning.
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@157 13b04d17-f746-0410-82c6-800466cd88b0
2012-02-17 13:11:03 +00:00