ngircd-alex.git
12 years agoUpdated NEWS to reflect ChangeLog.
Florian Westphal [Tue, 5 Feb 2008 14:41:50 +0000 (14:41 +0000)]
Updated NEWS to reflect ChangeLog.

12 years agoImplement RFC 2812 handling of "0" argument to JOIN
Dana Dahlstrom [Tue, 5 Feb 2008 13:31:50 +0000 (13:31 +0000)]
Implement RFC 2812 handling of "0" argument to JOIN

The students in my software-engineering class are writing IRC clients in
Java, and I'm running ngIRCd as a sandbox for them to play in. We
noticed ngIRCd doesn't obey the "JOIN 0" command specified in RFC 2812:

   JOIN 0             ; Leave all currently joined
                      channels.

http://tools.ietf.org/html/rfc2812#section-3.2.1
I believe the following patch addresses this. Cheers!

[fw@strlen.de: put it into a seperate function]

12 years agoDon't use Client_Type after command has been processed.
Florian Westphal [Tue, 5 Feb 2008 13:07:14 +0000 (13:07 +0000)]
Don't use Client_Type after command has been processed.

This caused a read from already free'd memory, if the processed
command (IRC_QUIT) calls Client_Destroy.

12 years agoUpdated NEWS to reflect ChangeLog.
Alexander Barton [Tue, 5 Feb 2008 12:02:59 +0000 (12:02 +0000)]
Updated NEWS to reflect ChangeLog.

12 years agoFix wrong strncpy usage if CVSDATE defined
Florian Westphal [Tue, 5 Feb 2008 11:46:55 +0000 (11:46 +0000)]
Fix wrong strncpy usage if CVSDATE defined

Hello_User() used strncpy with overlapping src/dest.
Use memmove instead.

12 years agoThis adds support for sending NOTICEs to a channel.
Florian Westphal [Tue, 15 Jan 2008 22:28:14 +0000 (22:28 +0000)]
This adds support for sending NOTICEs to a channel.

[also see Bug #70 in ngircd bugzilla].

Based on a patch by Fabian Schlager <fabian.schlager@gmail.com>.

12 years ago[Parser]: Fix minor sparse warnings
Florian Westphal [Sun, 13 Jan 2008 16:12:49 +0000 (16:12 +0000)]
[Parser]: Fix minor sparse warnings

parse.c:56:9: warning: symbol 'My_Commands' was not declared. Should it be static?
parse.c:107:9: warning: symbol 'My_Numerics' was not declared. Should it be static?

Also move handling of numerics into a seperate helper function.

12 years agoUpdated ChangeLog to reflect changes in 0.10.x and 0.11.x branches.
Alexander Barton [Mon, 7 Jan 2008 23:08:14 +0000 (23:08 +0000)]
Updated ChangeLog to reflect changes in 0.10.x and 0.11.x branches.

12 years agoUpdated Debian changelog [from 0.10.x; 0.11.x]
Alexander Barton [Mon, 7 Jan 2008 23:06:24 +0000 (23:06 +0000)]
Updated Debian changelog [from 0.10.x; 0.11.x]

12 years agoDocument NoDNS configuration option.
Alexander Barton [Mon, 7 Jan 2008 23:02:29 +0000 (23:02 +0000)]
Document NoDNS configuration option.

12 years agoIRC_PART could reference invalid memory.
Florian Westphal [Mon, 7 Jan 2008 11:42:00 +0000 (11:42 +0000)]
IRC_PART could reference invalid memory.

12 years agoRemove entry about ngircd failing on Linux 2.4:
Alexander Barton [Wed, 2 Jan 2008 22:47:58 +0000 (22:47 +0000)]
Remove entry about ngircd failing on Linux 2.4:
ngircd can now fall back to select. [from 0.11.x]

12 years agoUpdated NEWS and ChangeLog files.
Alexander Barton [Wed, 2 Jan 2008 11:31:48 +0000 (11:31 +0000)]
Updated NEWS and ChangeLog files.

12 years ago[Resolver]: Use dotted-decimal IP address if hostname is >= 64
Florian Westphal [Wed, 2 Jan 2008 11:03:29 +0000 (11:03 +0000)]
[Resolver]: Use dotted-decimal IP address if hostname is >= 64

12 years agoio_event_disable: return if event-to-disable is already off
Florian Westphal [Wed, 2 Jan 2008 10:29:51 +0000 (10:29 +0000)]
io_event_disable: return if event-to-disable is already off

12 years agokqueue: check for EV_ERROR in .flags
Florian Westphal [Thu, 27 Dec 2007 18:25:26 +0000 (18:25 +0000)]
kqueue: check for EV_ERROR in .flags

if kevent() returns events, check for EV_ERROR in event flags, too.

12 years agoFix format arg: ListenAddress was printed instead of Bind address.
Florian Westphal [Thu, 13 Dec 2007 01:30:16 +0000 (01:30 +0000)]
Fix format arg: ListenAddress was printed instead of Bind address.

12 years agoFix format string in error path: didn't print strerror(errno)
Florian Westphal [Thu, 13 Dec 2007 01:05:01 +0000 (01:05 +0000)]
Fix format string in error path: didn't print strerror(errno)

12 years agoimplement '/STAT u' (uptime)
Florian Westphal [Tue, 11 Dec 2007 11:29:43 +0000 (11:29 +0000)]
implement '/STAT u' (uptime)

12 years agoFix fmt string: int, not long
Florian Westphal [Fri, 7 Dec 2007 21:19:01 +0000 (21:19 +0000)]
Fix fmt string: int, not long

12 years agoinclude <arpa/inet.h> inside tool.h
Florian Westphal [Sun, 25 Nov 2007 18:42:37 +0000 (18:42 +0000)]
include <arpa/inet.h> inside tool.h

In file included from hash.c:24:
../tool/tool.h:27: warning: `struct in_addr' declared inside parameter list

12 years agoremove ip-string from Conf_Server struct
Florian Westphal [Fri, 23 Nov 2007 16:28:37 +0000 (16:28 +0000)]
remove ip-string from Conf_Server struct

struct Conf_Server stored the ip address to connect to
in dotted-decimal notation; but we only need this for connect()
so long-time storage isn't necessary.

12 years agodocument new "Bind" server config option in changelog.
Florian Westphal [Fri, 23 Nov 2007 16:28:05 +0000 (16:28 +0000)]
document new "Bind" server config option in changelog.

12 years agobind ListenAddress for outgoing connections
Florian Westphal [Fri, 23 Nov 2007 16:26:03 +0000 (16:26 +0000)]
bind ListenAddress for outgoing connections

ngircd would always use INADDR_ANY for outgoing connections;
which might not be desirable. Added new [Server] option
"Bind" to set source ip.

12 years agoFunktions to handle numerics sent to the server.
Alexander Barton [Wed, 21 Nov 2007 12:20:32 +0000 (12:20 +0000)]
Funktions to handle numerics sent to the server.

12 years agoIntroduce option to configure the maximum nick name lenth in ngircd.conf
Alexander Barton [Wed, 21 Nov 2007 12:16:33 +0000 (12:16 +0000)]
Introduce option to configure the maximum nick name lenth in ngircd.conf
- New configuration option "MaxNickLength" to specify the allowed maximum
  length of user nick names. Note: must be unique in an IRC network!
- Enhanced the IRC+ protocol to support an enhanced "server handshake" and
  enable server to recognice numeric 005 (ISUPPORT) and 376 (ENDOFMOTD).
  See doc/Protocol.txt for details.

12 years agoRe-added doc/SSL.txt to distribution -- got lost somewhere!?
Alexander Barton [Tue, 20 Nov 2007 21:39:35 +0000 (21:39 +0000)]
Re-added doc/SSL.txt to distribution -- got lost somewhere!?

12 years agoFixes the wrong logging output when nested servers are introduced
Alexander Barton [Tue, 20 Nov 2007 20:02:40 +0000 (20:02 +0000)]
Fixes the wrong logging output when nested servers are introduced
to the network as well as the wrong output of the LINKS command.

12 years agoRemove some bogus files from project ...
Alexander Barton [Mon, 19 Nov 2007 23:38:59 +0000 (23:38 +0000)]
Remove some bogus files from project ...

12 years agoUpdate Mac OS X Xcode project file for Xcode 3.
Alexander Barton [Mon, 19 Nov 2007 22:11:36 +0000 (22:11 +0000)]
Update Mac OS X Xcode project file for Xcode 3.
Allow building of ngIRCd using Xcode 3 without running ./configure.

12 years agoAdjust test suite to be usable on HP/UX 11.11 :-)
Alexander Barton [Sun, 18 Nov 2007 15:07:16 +0000 (15:07 +0000)]
Adjust test suite to be usable on HP/UX 11.11 :-)

12 years agoFix code to compile using K&R C compiler and ansi2kr again.
Alexander Barton [Sun, 18 Nov 2007 15:05:35 +0000 (15:05 +0000)]
Fix code to compile using K&R C compiler and ansi2kr again.

12 years agoadd tiny note about ngircd using syslog(3) by default.
Florian Westphal [Thu, 15 Nov 2007 01:03:29 +0000 (01:03 +0000)]
add tiny note about ngircd using syslog(3) by default.

12 years agoif ngircd doesn't run chrooted, it tries to chdir
Florian Westphal [Thu, 15 Nov 2007 01:03:01 +0000 (01:03 +0000)]
if ngircd doesn't run chrooted, it tries to chdir
to the users working directory (as returned by getpwuid()).
Failing to chdir to that directory isn't an error; so
log with LOG_INFO and prefix the message with "Notice".

12 years agoDocument NoDNS Option in changelog
Florian Westphal [Thu, 25 Oct 2007 11:03:02 +0000 (11:03 +0000)]
Document NoDNS Option in changelog

12 years agoNew config option NoDNS: disables all DNS queries.
Florian Westphal [Thu, 25 Oct 2007 11:01:19 +0000 (11:01 +0000)]
New config option NoDNS: disables all DNS queries.

12 years agoconfigtest would still print "-1" for MaxConnections, MaxConnectionsIP and MaxJoins
Florian Westphal [Wed, 24 Oct 2007 00:48:41 +0000 (00:48 +0000)]
configtest would still print "-1" for MaxConnections, MaxConnectionsIP and MaxJoins
if any of those values was set to 0.

12 years agoUpdates NEWS to reflect changes in CVS HEAD
Alexander Barton [Sun, 14 Oct 2007 14:17:32 +0000 (14:17 +0000)]
Updates NEWS to reflect changes in CVS HEAD

12 years agoFixed propagation of channel mode 'P' on server links.
Alexander Barton [Sun, 14 Oct 2007 12:08:57 +0000 (12:08 +0000)]
Fixed propagation of channel mode 'P' on server links.

12 years agoXcode project: include manual page template files, not generated pages.
Alexander Barton [Sun, 14 Oct 2007 11:25:45 +0000 (11:25 +0000)]
Xcode project: include manual page template files, not generated pages.

12 years agoUpdated Mac OS X project file for Xcode.
Alexander Barton [Sun, 14 Oct 2007 10:37:20 +0000 (10:37 +0000)]
Updated Mac OS X project file for Xcode.

12 years agofix doc and manpage wrt. MaxConnections, MaxConnectionsIP and MaxJoins values
Florian Westphal [Sat, 13 Oct 2007 20:45:11 +0000 (20:45 +0000)]
fix doc and manpage wrt. MaxConnections, MaxConnectionsIP and MaxJoins values

12 years agoaccoring to comments in the code, MaxConnections, MaxConnectionsIP and MaxJoins
Florian Westphal [Sat, 13 Oct 2007 19:11:06 +0000 (19:11 +0000)]
accoring to comments in the code, MaxConnections, MaxConnectionsIP and MaxJoins
options allow setting values < 0 -- this isn't the case. Comments adjusted.

12 years agoUpdated preferred automake version to 1.9. Only set preferences if not
Alexander Barton [Sun, 7 Oct 2007 13:02:15 +0000 (13:02 +0000)]
Updated preferred automake version to 1.9. Only set preferences if not
already defined by some environment variables.

12 years agoMade pointer to the mailing list more prominent.
Alexander Barton [Thu, 4 Oct 2007 15:18:48 +0000 (15:18 +0000)]
Made pointer to the mailing list more prominent.

12 years agoNumeric 317: implemented "signon time" (displayed in WHOIS result).
Alexander Barton [Thu, 4 Oct 2007 15:03:55 +0000 (15:03 +0000)]
Numeric 317: implemented "signon time" (displayed in WHOIS result).

12 years agoUpdated documentation ("Passive" option, for example).
Alexander Barton [Thu, 4 Oct 2007 10:14:52 +0000 (10:14 +0000)]
Updated documentation ("Passive" option, for example).

13 years agowe now support /WALLOPS
Florian Westphal [Thu, 2 Aug 2007 10:16:28 +0000 (10:16 +0000)]
we now support /WALLOPS

13 years agoimplement /WALLOPS as described in RFC 2812, section 4.7.
Florian Westphal [Thu, 2 Aug 2007 10:14:26 +0000 (10:14 +0000)]
implement /WALLOPS as described in RFC 2812, section 4.7.

13 years agoSECURITY: Fixed a severe bug in handling JOIN commands, which could
Alexander Barton [Tue, 31 Jul 2007 18:56:13 +0000 (18:56 +0000)]
SECURITY: Fixed a severe bug in handling JOIN commands, which could
cause the server to crash. Thanks to Sebastian Vesper, <net@veoson.net>.

13 years agolast fix accidentially broke reconnect timer.
Florian Westphal [Sat, 21 Jul 2007 18:46:28 +0000 (18:46 +0000)]
last fix accidentially broke reconnect timer.

13 years agoDon't connect to a server if a connection to another server within the same group
Florian Westphal [Thu, 28 Jun 2007 15:13:38 +0000 (15:13 +0000)]
Don't connect to a server if a connection to another server within the same group
is in progress.

13 years agoAdd new server config option to disable automatic connect. (Tassilo Schweyer)
Florian Westphal [Thu, 28 Jun 2007 05:15:12 +0000 (05:15 +0000)]
Add new server config option to disable automatic connect. (Tassilo Schweyer)

13 years agoUpdated documentation to include changes of ngIRCd 0.10.2.
Alexander Barton [Wed, 13 Jun 2007 14:32:13 +0000 (14:32 +0000)]
Updated documentation to include changes of ngIRCd 0.10.2.

13 years agofix compile /w gcc 2.95 (reported by Tassilo Schweyer)
Florian Westphal [Mon, 11 Jun 2007 20:06:46 +0000 (20:06 +0000)]
fix compile /w gcc 2.95 (reported by Tassilo Schweyer)

13 years agoUpdated config.guess and config.sub.
Alexander Barton [Sat, 26 May 2007 10:44:12 +0000 (10:44 +0000)]
Updated config.guess and config.sub.

13 years agoAdd note to INSTALL document.
Alexander Barton [Sun, 20 May 2007 22:37:05 +0000 (22:37 +0000)]
Add note to INSTALL document.

13 years agoUpdated ChangeLog.
Alexander Barton [Thu, 17 May 2007 23:38:14 +0000 (23:38 +0000)]
Updated ChangeLog.

13 years agoReworked read and write buffer handling, introduced WRITEBUFFER_SLINK_LEN.
Alexander Barton [Thu, 17 May 2007 23:34:24 +0000 (23:34 +0000)]
Reworked read and write buffer handling, introduced WRITEBUFFER_SLINK_LEN.

13 years agoZip_Flush(): close the connection in all error cases.
Alexander Barton [Thu, 17 May 2007 15:16:47 +0000 (15:16 +0000)]
Zip_Flush(): close the connection in all error cases.

13 years agoarray_start() cannot legally return NULL if array_length() > 0 --> use assert().
Florian Westphal [Thu, 17 May 2007 14:46:14 +0000 (14:46 +0000)]
array_start() cannot legally return NULL if array_length() > 0 --> use assert().

13 years agoMake Zip_Flush() more graceful.
Alexander Barton [Thu, 17 May 2007 13:49:49 +0000 (13:49 +0000)]
Make Zip_Flush() more graceful.

13 years agothere is no need to treat servers differently than clients on the read side.
Florian Westphal [Thu, 17 May 2007 12:39:25 +0000 (12:39 +0000)]
there is no need to treat servers differently than clients on the read side.

13 years agomake needlesly global function Conn_Write static.
Florian Westphal [Wed, 9 May 2007 13:21:11 +0000 (13:21 +0000)]
make needlesly global function Conn_Write static.

13 years agoremove ZBUFFER constants and increase max buffer size of server links
Florian Westphal [Wed, 9 May 2007 08:55:14 +0000 (08:55 +0000)]
remove ZBUFFER constants and increase max buffer size of server links

13 years agofix compressed server links
Florian Westphal [Wed, 2 May 2007 12:34:30 +0000 (12:34 +0000)]
fix compressed server links

13 years ago2007 :-)
Alexander Barton [Mon, 9 Apr 2007 01:24:05 +0000 (01:24 +0000)]
2007 :-)

13 years agoUpdated documentation.
Alexander Barton [Sun, 8 Apr 2007 11:39:08 +0000 (11:39 +0000)]
Updated documentation.

13 years ago- change return type of Conn_InitListeners to unsigned
Florian Westphal [Wed, 4 Apr 2007 21:52:12 +0000 (21:52 +0000)]
- change return type of Conn_InitListeners to unsigned
- remove minor whitespace damage

13 years agoput parentheses around argument
Florian Westphal [Tue, 3 Apr 2007 22:08:10 +0000 (22:08 +0000)]
put parentheses around argument

13 years agoif we can't bind a socket we now Log the port number, too.
Florian Westphal [Wed, 21 Feb 2007 11:06:06 +0000 (11:06 +0000)]
if we can't bind a socket we now Log the port number, too.

13 years agoreturn false instead of NULL in error path
Florian Westphal [Mon, 29 Jan 2007 21:13:26 +0000 (21:13 +0000)]
return false instead of NULL in error path

13 years agoRemove Client_DestroyNow() to keep semantik "every CONNECTON has a CLIENT".
Alexander Barton [Tue, 23 Jan 2007 16:07:19 +0000 (16:07 +0000)]
Remove Client_DestroyNow() to keep semantik "every CONNECTON has a CLIENT".

13 years agofix broken IO_DEBUG build
Florian Westphal [Fri, 19 Jan 2007 13:52:54 +0000 (13:52 +0000)]
fix broken IO_DEBUG build

13 years agoio_event_add: return if eventtype is already registered.
Florian Westphal [Thu, 18 Jan 2007 00:25:26 +0000 (00:25 +0000)]
io_event_add: return if eventtype is already registered.

13 years agoadd support for predefined-channel configuration of k and l modes
Florian Westphal [Fri, 29 Dec 2006 14:09:48 +0000 (14:09 +0000)]
add support for predefined-channel configuration of k and l modes

13 years agoAdded "html" directory to CVS ignore list (it is generated by doxygen).
Alexander Barton [Thu, 28 Dec 2006 14:12:45 +0000 (14:12 +0000)]
Added "html" directory to CVS ignore list (it is generated by doxygen).

13 years agodistclean: remove "html" folder.
Alexander Barton [Thu, 28 Dec 2006 14:04:28 +0000 (14:04 +0000)]
distclean: remove "html" folder.

13 years agoUpdated documentation, refer to all the supported IO APIs.
Alexander Barton [Thu, 28 Dec 2006 13:53:19 +0000 (13:53 +0000)]
Updated documentation, refer to all the supported IO APIs.

13 years agoadded "portabtest" binary to list of files to ignore.
Alexander Barton [Thu, 28 Dec 2006 13:34:43 +0000 (13:34 +0000)]
added "portabtest" binary to list of files to ignore.

13 years agoAdded .cvsignore files to hide generated files from CVS.
Alexander Barton [Thu, 28 Dec 2006 13:20:07 +0000 (13:20 +0000)]
Added .cvsignore files to hide generated files from CVS.

13 years agoarray_free(): enable debug code only when DEBUG_ARRAY is #define'd.
Alexander Barton [Thu, 28 Dec 2006 12:53:41 +0000 (12:53 +0000)]
array_free(): enable debug code only when DEBUG_ARRAY is #define'd.

13 years agoNew configure option "--without-select"; when usin epoll() IO API include
Alexander Barton [Tue, 26 Dec 2006 16:00:45 +0000 (16:00 +0000)]
New configure option "--without-select"; when usin epoll() IO API include
support for select() as well by default and fall back on runtime when needed.

13 years agoOnly "fiddle" with /etc/ngircd in "configure" stage.
Alexander Barton [Tue, 26 Dec 2006 14:44:40 +0000 (14:44 +0000)]
Only "fiddle" with /etc/ngircd in "configure" stage.

13 years agoAdded LSB compliant header.
Alexander Barton [Tue, 26 Dec 2006 14:43:46 +0000 (14:43 +0000)]
Added LSB compliant header.

13 years agoFixed typo in #ifdef which tests if this header is already included or not.
Alexander Barton [Mon, 25 Dec 2006 22:53:52 +0000 (22:53 +0000)]
Fixed typo in #ifdef which tests if this header is already included or not.

13 years agoCustomize manual pages to reflect the actual installation location of files.
Alexander Barton [Mon, 25 Dec 2006 16:13:26 +0000 (16:13 +0000)]
Customize manual pages to reflect the actual installation location of files.

13 years agoregister io handler before creating new local client structure
Florian Westphal [Mon, 25 Dec 2006 01:11:12 +0000 (01:11 +0000)]
register io handler before creating new local client structure

13 years agorevert to last good revision again 8-/
Florian Westphal [Sun, 17 Dec 2006 23:04:45 +0000 (23:04 +0000)]
revert to last good revision again 8-/

13 years agodo not call Conn_Close when io_event_create fails
Florian Westphal [Sun, 17 Dec 2006 22:55:07 +0000 (22:55 +0000)]
do not call Conn_Close when io_event_create fails

13 years agofix possibe buffer-off-by one
Florian Westphal [Sun, 17 Dec 2006 22:52:43 +0000 (22:52 +0000)]
fix possibe buffer-off-by one

13 years agodon't call Resolve_Shutdown() when io_event_create fails
Florian Westphal [Sun, 17 Dec 2006 22:50:51 +0000 (22:50 +0000)]
don't call Resolve_Shutdown() when io_event_create fails

13 years agoUpdated ChangeLog/NEWS to reflect release of ngIRCd 0.10.1.
Alexander Barton [Sun, 17 Dec 2006 21:00:30 +0000 (21:00 +0000)]
Updated ChangeLog/NEWS to reflect release of ngIRCd 0.10.1.

13 years agoremoved errouneous FD_SETSIZE limit when not using select()
Florian Westphal [Sat, 16 Dec 2006 22:48:34 +0000 (22:48 +0000)]
removed errouneous FD_SETSIZE limit when not using select()

13 years agoadd PredefChannelsOnly option to man page
Florian Westphal [Mon, 11 Dec 2006 22:07:09 +0000 (22:07 +0000)]
add PredefChannelsOnly option to man page

13 years agominor cleanup
Florian Westphal [Thu, 7 Dec 2006 22:24:14 +0000 (22:24 +0000)]
minor cleanup

13 years agoremove unused function Channel_PCount
Florian Westphal [Thu, 7 Dec 2006 22:23:39 +0000 (22:23 +0000)]
remove unused function Channel_PCount

13 years agomoved invite/ban lists to channel structure
Florian Westphal [Thu, 7 Dec 2006 17:57:20 +0000 (17:57 +0000)]
moved invite/ban lists to channel structure

13 years agofix RPL_LOCALUSERS_MSG (%ld -> %lu)
Florian Westphal [Sat, 2 Dec 2006 14:24:36 +0000 (14:24 +0000)]
fix RPL_LOCALUSERS_MSG (%ld -> %lu)

13 years agoLog(LOG_DEBUG, .. -> LogDebug()
Florian Westphal [Sat, 2 Dec 2006 14:10:48 +0000 (14:10 +0000)]
Log(LOG_DEBUG, .. -> LogDebug()