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.
Kevin Easton
2012-05-08 15:20:39 +00:00
b55825ab99
Rebuild configure from configure.in rev 164.
Kevin Easton
2012-05-08 14:35:53 +00:00
7ee26d4ed3
Change the install* targets in the Makefiles to honour DESTDIR. This makes packaging the client for .deb and .rpm easier.
Kevin Easton
2012-05-08 14:34:25 +00:00
cb0c2aabc2
Improve error handling in /detach - will now soft-fail the detach instead of killing the whole client.
Kevin Easton
2012-04-30 08:05:04 +00:00
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.
Kevin Easton
2012-04-29 12:15:57 +00:00
10d5ab5a18
Changelog update for r160 change.
Kevin Easton
2012-03-06 12:12:58 +00:00
97174632dc
Add explicit default value for NICK_COMPLETION_CHAR.
Kevin Easton
2012-03-06 11:14:51 +00:00
a9e1608865
Compile wterm.o, bircsig.o, wnetwork.o, bcompat.o, sterm.o directly from source files without symlinks.
Kevin Easton
2012-03-06 11:11:54 +00:00
dd6bb7752b
Update copyright notice and add COPYRIGHT file to top-level of archive.
Kevin Easton
2012-02-29 22:56:23 +00:00
b0f8c03dec
Cleanup ci_alist_hash() and cs_alist_hash(), fixes a compile warning.
Kevin Easton
2012-02-17 13:11:03 +00:00
e2ada61548
Modernise autoconf checks for sys_siglist and strsignal.
Kevin Easton
2012-02-17 12:30:55 +00:00
b7c216bcc6
Remove special compilation for help.c - DEFAULT_HELP_PATH isn't referenced by the code.
Kevin Easton
2012-02-17 10:31:20 +00:00
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.
Kevin Easton
2012-02-17 10:24:38 +00:00
71584dfc23
Build system fixes - remove unnecessary acconfig.h.
Kevin Easton
2012-02-17 10:21:54 +00:00
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.
Kevin Easton
2012-02-16 10:13:10 +00:00
6c6ae94dd4
Changelog update for rev 150 change.
Kevin Easton
2012-02-16 09:10:06 +00:00
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).
Kevin Easton
2012-02-10 12:38:08 +00:00
87f24694b9
Remove unnecessary ns_init() function.
Kevin Easton
2012-02-10 11:22:14 +00:00
122849f247
Replace _getshort() and _getlong() with NS_GET16() and NS_GET32() respectively. Fixes compilation on cygwin (and possibly other targets).
Kevin Easton
2012-02-08 12:53:16 +00:00
7978a87c9f
Change async DNS resolver code to register its file descriptor with the IO core. This fixes /nslookup.
Kevin Easton
2012-02-08 11:24:48 +00:00
ed16081a2b
Remove bogus F_SETOWN use in /detach code.
Kevin Easton
2012-02-01 13:26:50 +00:00
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.
Kevin Easton
2012-02-01 13:21:47 +00:00
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.
Kevin Easton
2011-10-13 12:45:27 +00:00
15f6d8ac06
Pass through arguments of 338 numeric unchanged to script hook.
Kevin Easton
2011-10-06 09:48:10 +00:00
b355145d69
Add /FSET CHANNEL_URL to format the RPL_CHANNELURL (328) numeric sent by dalnet and atheme services.
Kevin Easton
2011-10-04 12:47:01 +00:00
89b77f68fe
Cleanups and simplifications in mircansi(), removal of some more warnings.
Kevin Easton
2011-09-07 14:41:06 +00:00
206df688ba
Fix mircansi() so that it properly handles non-numeric characters after a comma.
Kevin Easton
2011-09-07 12:48:35 +00:00
cc0a27d7fe
Rework stripansicodes() to take a const char * argument rather than const unsigned char *, fixing a large number of warnings.
Kevin Easton
2011-09-07 10:13:18 +00:00
43aaf645e2
Use PC_SILENT macro in BX_prepare_command()
Kevin Easton
2011-09-06 06:55:38 +00:00
736777bea3
Change instances of open-coded "3" in calls to prepare_command() with PC_SILENT macro.
Kevin Easton
2011-09-06 06:48:57 +00:00
02e4ced684
Add PC_TOPIC flag to prepare_command() for topic-change commands.
Kevin Easton
2011-09-05 12:57:31 +00:00
83ac47c4f5
Minor cleanup for error_not_opped().
Kevin Easton
2011-08-30 14:52:56 +00:00
c89a718fa1
Change the channel mode flags from const ints in names.c to #define macros in names.h.
Kevin Easton
2011-08-30 14:50:42 +00:00
3f8952f20a
Fix some memory leaks that occur when clearing the URL-grabber list.
Kevin Easton
2011-06-01 12:53:30 +00:00
52753a9e15
Further cleanups in the URL grabber - remove unnecessary globals, change url_list from extern to static.
Kevin Easton
2011-05-17 14:16:34 +00:00
b628217600
Fix a memory leak in the URL grabber - as old URLs were expired from the list, they weren't being freed.
Kevin Easton
2011-05-17 14:03:29 +00:00
41d0516849
Remove some dead code in funny_mode().
Kevin Easton
2011-05-16 13:16:25 +00:00
1569a5233f
Fix a regression with the previous changes to $help() - topics with embedded spaces are enclosed in quotes eg. $help("cdcc tresend").
Kevin Easton
2011-05-03 11:55:34 +00:00
7c36bdd4ad
Cleanups to $help() function, removing some half-baked functionality that never worked properly. Search LOAD_PATH for the SCRIPT_HELP file.
Kevin Easton
2011-05-02 12:34:39 +00:00
c5b5fdd4af
Sort the chelp index after loading - ensures that all topics are reachable.
Kevin Easton
2011-05-02 11:43:38 +00:00
1838a37a6c
Cleanups in get_help_topic(). Topic now displays correctly, rather than the argument supplied to /bhelp.
Kevin Easton
2011-04-18 14:30:03 +00:00
ab170a123d
Further simplifications and improvements to the chelp code.
Kevin Easton
2011-04-18 12:54:13 +00:00
47ce4ab1e1
Apply changes to BitchX.help from t3gah.
Kevin Easton
2011-04-18 12:38:21 +00:00
09c34c045f
Further cleanups and fixes in chelp.c:read_file(). Now properly adds NULLs to terminate the lists, that the code in get_help_topic() expects to be there - fixes a potential crash in /bhelp.
Kevin Easton
2011-04-17 11:58:16 +00:00
df5547af72
Add .xxx TLD to country(), and some more const-correctness.
Kevin Easton
2011-04-17 03:33:00 +00:00
780ac2c149
Cleanup and rename replace_color() to put_color(), including sanity-checking of foreground color code - this ensures that if a wild color code makes it this far, it doesn't crash the client.
Kevin Easton
2011-04-08 13:10:05 +00:00
fd9980b9c7
Fix spelling mistake.
Kevin Easton
2011-04-08 12:29:55 +00:00
7f293687b1
Correct help text for /bhelp, reported by t3gah.
Kevin Easton
2011-04-05 23:24:22 +00:00
9b92ec3c11
Cleanups and simplifications in read_file().
Kevin Easton
2011-04-05 11:59:06 +00:00
c816dcec22
Add missing entry for new USERMODE_OTHERS /fset.
Kevin Easton
2011-04-05 05:47:49 +00:00
3f0ef54b18
Remove some dead code and add a sanity check to create_fsets().
Kevin Easton
2011-04-05 05:45:20 +00:00
c45c6a69bf
Cleanup p_mode() and correct handling of user mode changes where the source and the target aren't the same (reported by gauze). This doesn't happen on standard servers, but is used by services on some networks.
Kevin Easton
2011-03-31 22:20:21 +00:00
719279790e
Add some more TLDs to $country(), synchronised with the IANA list: .ax, .eu, .me, .rs, .tl, .asia, .cat, .jobs, .tel and .travel.
Kevin Easton
2011-03-31 08:32:23 +00:00
b17b09949b
Improve country() by using "static const" for lookup table (makes function 25% smaller) and const-correctness. Add .mobi TLD.
Kevin Easton
2011-03-23 11:17:23 +00:00
3aa7f7765f
Remove non-standard arithmetic on void *, and get offsetof() from <stddef.h> instead of rolling our own.
Kevin Easton
2011-02-02 12:34:13 +00:00
b43ecbaa85
Improve memory allocation routines to fix alignment and remove non-standard void * arithmetic.
Kevin Easton
2011-02-02 12:15:29 +00:00
08cca81993
Rework cset functions to remove non-standard void * arithmetic.
Kevin Easton
2011-02-02 12:13:54 +00:00
fc33f520ae
Remove non-standard void * arithmetic (fixes compilation with Irix compiler).
Kevin Easton
2011-02-02 12:11:03 +00:00
9f3256cac7
A few updates to the quit messages.
Kevin Easton
2011-02-02 11:11:28 +00:00
6711ef7f00
Correct use of IN6ADDR_ANY_INIT initialiser, fixes IPv6 build on Intel ICC.
Kevin Easton
2010-12-16 21:15:15 +00:00
d1e13bc526
Show correct message ("Remote end closed connection") when we get EOF on a socket.
Kevin Easton
2010-09-30 13:26:06 +00:00
7a59da1f2e
Add /FSET WHOIS_CALLERID for +g mode notification on hybrid & ratbox.
Kevin Easton
2010-09-30 12:48:28 +00:00
5430be4c78
Add RPL_WHOISHOST (378) numeric from Unreal (and freenode).
Kevin Easton
2010-09-20 12:30:55 +00:00
4fab4aaebf
Add svn:ignore Makefile to ignore generated Makefiles in plugin directories.
Kevin Easton
2010-09-10 13:35:49 +00:00
2f92982eac
Build script fix to allow plugins to build on x86-64.
Kevin Easton
2010-09-09 01:08:14 +00:00
f71e26acc7
Correct count in /CLONES (reported by t3gah), and format output nicely using an /fset.
Kevin Easton
2010-09-06 13:40:13 +00:00
cb8e8c21ae
Add definition of BIND_8_COMPAT to fix build problem on Mac OS X.
Kevin Easton
2010-09-06 12:46:03 +00:00
518186b85b
Add changelog message for -z command line option fix.
Kevin Easton
2010-09-05 09:21:16 +00:00
3c0e23a7c5
Ensure that SHOW_AWAY_ONCE doesn't hide away status in /whois output, by clearing last_away_msg when the 311 whois reply numeric is recieved.
Kevin Easton
2010-09-05 09:03:32 +00:00
d6c105861c
Fix auto-away time strangeness when server reconnection happens.
Kevin Easton
2010-09-05 08:37:04 +00:00
a72091bb0e
Fix the -z command line option and the use of the IRCUSER environment variable.
Tim Cava
2010-07-30 09:52:17 +00:00
28f8b2c9af
Use the value passed to auto_away() instead of recalculating it, and rename this variable "idle_mins". (From BX2)
Tim Cava
2010-07-01 08:19:28 +00:00
7269d14c75
When /AWAYMSG is used without an argument, tell the user their auto-away msg was unset, instead of saying it was set to "nothing". (From BX2)
Tim Cava
2010-06-30 05:50:12 +00:00
60d451fa92
Cleanup my_whois a bit.
Kevin Easton
2010-06-27 13:05:32 +00:00
0fe403c70c
Fix attribution.
Kevin Easton
2010-06-27 00:50:35 +00:00
223926fdf2
Fix up /WILN, /WILC and /WILCR. last_ctcp is now the last CTCP request recieved; last_ctcp_reply is the last reply recieved (used by /RELCR etc.)
Kevin Easton
2010-06-26 14:43:22 +00:00
789ed916cd
Backport changes from epic5 to make recv_nick, sent_nick and sent_body per-server, and apply new version of do_oops from flewid (the BX2 version).
Kevin Easton
2010-06-26 08:18:34 +00:00
56d5c9e643
Add a "const" qualifier to get rid of some warnings.
Kevin Easton
2010-06-26 08:01:55 +00:00
1a0e5ec166
The /cd command now handles getcwd() failing (eg if the current directory has been removed).
Kevin Easton
2010-05-02 08:18:29 +00:00
38cd097631
Remove symlinks from repository - not needed, Makefile regenerates 'em.
Kevin Easton
2010-03-23 14:12:28 +00:00
8c099a4ce3
Fix alloca build warnings on freebsd (backport from epic).
Kevin Easton
2010-03-07 07:24:12 +00:00
abb5e06233
Modify the RPL_WHOISACTUALLY numeric handling to work on Bahamut as well.
Kevin Easton
2009-12-10 13:07:23 +00:00
0770358394
Correct misuse of RETURN_STR macro in function_gettmatch.
Kevin Easton
2009-11-24 12:06:54 +00:00
7ac4b8520c
Convert my_stricmp, my_strnicmp and wild_match from unsigned char * to char *.
Kevin Easton
2009-11-24 10:21:30 +00:00
f8c9021184
Fix minor memory leak in banlist.c:delay_flush_all.
Kevin Easton
2009-11-18 10:30:46 +00:00
db57885dfb
Fix the definition of AC_CHECK_PLUGIN_SUPPORT in aclocal.m4, which was making configure break on FreeBSD 9 (reported FreeBSD bitchx port maintainer cpet <chris@officialunix.com>).
Kevin Easton
2009-11-18 10:13:19 +00:00
b2a282feaa
Fix a refcounting issue in the whowas list handling.
Kevin Easton
2009-10-16 12:35:56 +00:00
cb306c8947
Changelog entry for /hostname fix.
Kevin Easton
2009-09-27 12:48:25 +00:00
4e72a992b4
Fix argument-handling for the /hostname (/irchost) command - now you can do /hostname 2 instead of /hostname #2.
Kevin Easton
2009-09-27 12:45:28 +00:00
eab1834e64
Add 0::1 to list of ipv6 addressed ignored as vhost candidates.
Kevin Easton
2009-09-27 12:06:31 +00:00
5337b226fa
Change the handle_server_stats so that the averages (eg. users per channel) are correctly rounded. Added a divide_rounded() function that rounds to nearest integer. This also gets rid of the messy floating point divisions in that function.
Kevin Easton
2009-09-22 22:35:23 +00:00
0fc23ba148
Reinstate a new version of RPL_WHOISACTUALLY numeric handling.
Kevin Easton
2009-09-21 14:14:28 +00:00
771b2af59d
Fixed two places where the client compared the source of a numeric against get_server_name(from_server) instead of get_server_itsname(from_server) - this meant that if the client had a different idea of the local server name from the server (say, if you used a round-robin to connect), then the client would incorrectly assume the numeric came from a remote server.
Kevin Easton
2009-09-19 14:24:15 +00:00
e338d2d9fd
Fix the $servernum() function - no matter what string you gave it, it would return the first server in the list where server.itsname == server.name, due to a misplaced variable. It also returned an empty string for $servernum( ) when it should return the current server.
Kevin Easton
2009-09-17 13:38:09 +00:00
4decd6202b
Fix snprintf buffer size.
Kevin Easton
2009-09-08 13:40:45 +00:00
eb13453e50
Fix snprintf() call in /QUIT to make glibc2.9 happy.
Kevin Easton
2009-09-08 13:22:27 +00:00
a6636dd449
Add missing third parameter to open().
Kevin Easton
2009-09-08 12:44:03 +00:00
7a046f56ab
Add missing third argument to open().
Kevin Easton
2009-09-08 12:37:39 +00:00