]> arthur.barton.de Git - ngircd-alex.git/log
ngircd-alex.git
16 years agoRemove duplicate Channel_FirstChannelOf().
Dana Dahlstrom [Tue, 5 Feb 2008 19:00:52 +0000 (19:00 +0000)]
Remove duplicate Channel_FirstChannelOf().

noticed there's a way to make the loop
slightly more elegant.

[fw@strlen.de: Extra () to silence gcc.]

16 years agoMake Channel_Part name and reason parameters 'const'.
Florian Westphal [Tue, 5 Feb 2008 16:31:35 +0000 (16:31 +0000)]
Make Channel_Part name and reason parameters 'const'.

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

16 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]

16 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.

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

16 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.

16 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>.

16 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.

16 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.

16 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]

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

16 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.

16 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]

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

16 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

16 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

16 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.

16 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.

16 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)

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

16 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

16 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

16 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.

16 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.

16 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.

16 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.

16 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.

16 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!?

16 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.

16 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 ...

16 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.

16 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 :-)

16 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.

16 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.

16 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".

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

16 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.

16 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.

16 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

16 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.

16 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.

16 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.

16 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

16 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.

16 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.

16 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.

16 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).

16 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).

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

16 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.

16 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>.

16 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.

16 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.

16 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)

16 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.

16 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)

16 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.

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

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

16 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.

16 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.

16 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().

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

16 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.

16 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.

16 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

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

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

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

17 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

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

17 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.

17 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

17 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".

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

17 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.

17 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

17 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).

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

17 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.

17 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.

17 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.

17 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.

17 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.

17 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.

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

17 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.

17 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.

17 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

17 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-/

17 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

17 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

17 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

17 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.

17 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()

17 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

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

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

17 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