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
Kevin Easton
e2ada61548
Modernise autoconf checks for sys_siglist and strsignal.
...
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@156 13b04d17-f746-0410-82c6-800466cd88b0
2012-02-17 12:30:55 +00:00
Kevin Easton
b7c216bcc6
Remove special compilation for help.c - DEFAULT_HELP_PATH isn't
...
referenced by the code.
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@155 13b04d17-f746-0410-82c6-800466cd88b0
2012-02-17 10:31:20 +00:00
Kevin Easton
c648b63fa6
Regenerate configure and defs.h.in using autoconf and autoheader 2.59.
...
(Applies FreeBSD 9 build fix from rev 152 to configure). May also fix
strlcpy() detection with icc.
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@154 13b04d17-f746-0410-82c6-800466cd88b0
2012-02-17 10:24:38 +00:00
Kevin Easton
71584dfc23
Build system fixes - remove unnecessary acconfig.h.
...
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@153 13b04d17-f746-0410-82c6-800466cd88b0
2012-02-17 10:21:54 +00:00
Kevin Easton
f95ebdc259
Fix AC_CHECK_PLUGIN_SUPPORT to fix building on FreeBSD 9, and regenerate
...
aclocal.m4 with the fix. This improves upon the original fix in revision 78,
and should actually fix the problem this time.
Reported by cpet and VICODAN.
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@152 13b04d17-f746-0410-82c6-800466cd88b0
2012-02-16 10:13:10 +00:00
Kevin Easton
6c6ae94dd4
Changelog update for rev 150 change.
...
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@151 13b04d17-f746-0410-82c6-800466cd88b0
2012-02-16 09:10:06 +00:00
Kevin Easton
5222ce2f1d
Move window_check_servers() call out of loop, otherwise the client does a
...
huge amount of work on each keystroke if you have a long server list and
start it up disconnected (-N).
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@150 13b04d17-f746-0410-82c6-800466cd88b0
2012-02-10 12:38:08 +00:00
Kevin Easton
87f24694b9
Remove unnecessary ns_init() function.
...
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@149 13b04d17-f746-0410-82c6-800466cd88b0
2012-02-10 11:22:14 +00:00
Kevin Easton
122849f247
Replace _getshort() and _getlong() with NS_GET16() and NS_GET32() respectively.
...
Fixes compilation on cygwin (and possibly other targets).
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@148 13b04d17-f746-0410-82c6-800466cd88b0
2012-02-08 12:53:16 +00:00
Kevin Easton
7978a87c9f
Change async DNS resolver code to register its file descriptor with the IO
...
core. This fixes /nslookup.
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@147 13b04d17-f746-0410-82c6-800466cd88b0
2012-02-08 11:24:48 +00:00
Kevin Easton
ed16081a2b
Remove bogus F_SETOWN use in /detach code.
...
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@146 13b04d17-f746-0410-82c6-800466cd88b0
2012-02-01 13:26:50 +00:00
Kevin Easton
5cf8ed2c79
Cleanup create_ipc_socket() and ensure it detects all errors in
...
connect_by_number(). Make function static since it is only used in one
source file.
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@145 13b04d17-f746-0410-82c6-800466cd88b0
2012-02-01 13:21:47 +00:00
Kevin Easton
71cc2bf5f4
Add FORMAT_WHOIS_SECURE for SSL connection info from ratbox, unreal and freenode servers (RPL_WHOISSECURE). Does not support
...
hybrid yet because it uses numeric 275, which clashes with unreal's RPL_STATSDLINE.
RIP dmr.
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@144 13b04d17-f746-0410-82c6-800466cd88b0
2011-10-13 12:45:27 +00:00
Kevin Easton
15f6d8ac06
Pass through arguments of 338 numeric unchanged to script hook.
...
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@143 13b04d17-f746-0410-82c6-800466cd88b0
2011-10-06 09:48:10 +00:00
Kevin Easton
b355145d69
Add /FSET CHANNEL_URL to format the RPL_CHANNELURL (328) numeric sent by dalnet and atheme services.
...
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@142 13b04d17-f746-0410-82c6-800466cd88b0
2011-10-04 12:47:01 +00:00
Kevin Easton
89b77f68fe
Cleanups and simplifications in mircansi(), removal of some more warnings.
...
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@141 13b04d17-f746-0410-82c6-800466cd88b0
2011-09-07 14:41:06 +00:00
Kevin Easton
206df688ba
Fix mircansi() so that it properly handles non-numeric characters
...
after a comma.
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@140 13b04d17-f746-0410-82c6-800466cd88b0
2011-09-07 12:48:35 +00:00
Kevin Easton
cc0a27d7fe
Rework stripansicodes() to take a const char * argument rather than const unsigned char *,
...
fixing a large number of warnings.
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@139 13b04d17-f746-0410-82c6-800466cd88b0
2011-09-07 10:13:18 +00:00
Kevin Easton
43aaf645e2
Use PC_SILENT macro in BX_prepare_command()
...
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@138 13b04d17-f746-0410-82c6-800466cd88b0
2011-09-06 06:55:38 +00:00
Kevin Easton
736777bea3
Change instances of open-coded "3" in calls to prepare_command() with PC_SILENT macro.
...
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@137 13b04d17-f746-0410-82c6-800466cd88b0
2011-09-06 06:48:57 +00:00
Kevin Easton
02e4ced684
Add PC_TOPIC flag to prepare_command() for topic-change commands.
...
Clean up e_topic(), splitting out untopic() and using prepare_command()
to check for ops.
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@136 13b04d17-f746-0410-82c6-800466cd88b0
2011-09-05 12:57:31 +00:00
Kevin Easton
83ac47c4f5
Minor cleanup for error_not_opped().
...
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@135 13b04d17-f746-0410-82c6-800466cd88b0
2011-08-30 14:52:56 +00:00
Kevin Easton
c89a718fa1
Change the channel mode flags from const ints in names.c to #define macros in names.h.
...
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@134 13b04d17-f746-0410-82c6-800466cd88b0
2011-08-30 14:50:42 +00:00
Kevin Easton
3f8952f20a
Fix some memory leaks that occur when clearing the URL-grabber list.
...
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@133 13b04d17-f746-0410-82c6-800466cd88b0
2011-06-01 12:53:30 +00:00
Kevin Easton
52753a9e15
Further cleanups in the URL grabber - remove unnecessary globals, change
...
url_list from extern to static.
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@132 13b04d17-f746-0410-82c6-800466cd88b0
2011-05-17 14:16:34 +00:00
Kevin Easton
b628217600
Fix a memory leak in the URL grabber - as old URLs were expired from the list,
...
they weren't being freed.
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@131 13b04d17-f746-0410-82c6-800466cd88b0
2011-05-17 14:03:29 +00:00
Kevin Easton
41d0516849
Remove some dead code in funny_mode().
...
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@130 13b04d17-f746-0410-82c6-800466cd88b0
2011-05-16 13:16:25 +00:00
Kevin Easton
1569a5233f
Fix a regression with the previous changes to $help() - topics with embedded
...
spaces are enclosed in quotes eg. $help("cdcc tresend").
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@129 13b04d17-f746-0410-82c6-800466cd88b0
2011-05-03 11:55:34 +00:00
Kevin Easton
7c36bdd4ad
Cleanups to $help() function, removing some half-baked functionality that
...
never worked properly. Search LOAD_PATH for the SCRIPT_HELP file.
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@128 13b04d17-f746-0410-82c6-800466cd88b0
2011-05-02 12:34:39 +00:00
Kevin Easton
c5b5fdd4af
Sort the chelp index after loading - ensures that all topics are reachable.
...
Use correct define for PUBLIC_ACCESS.
Some cleanups - separate out help index freeing, change get_help_topic() to return
void.
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@127 13b04d17-f746-0410-82c6-800466cd88b0
2011-05-02 11:43:38 +00:00