]>
arthur.barton.de Git - ngircd-alex.git/log
Florian Westphal [Thu, 3 Apr 2008 14:17:42 +0000 (14:17 +0000)]
io.c: fix select FD_SETSIZE check when using epoll as io backend
Florian Westphal [Thu, 27 Mar 2008 15:47:21 +0000 (15:47 +0000)]
io.c: try to cut down the number of ifdefs.
consolidate backend-specific helpers and
add empty statinc inle stubs in the ifndef case
to let the compiler remove the functions at compile time.
Florian Westphal [Tue, 18 Mar 2008 20:12:47 +0000 (20:12 +0000)]
Do not exit unconditionally if config file cannot be opened
ngircd will exit if the config file cannot be opened. While
thats okay if ngircd starts up for the first time, it isn't
when we are re-reading the config file after a /REHASH or SIGHUP.
Alexander Barton [Tue, 11 Mar 2008 14:05:27 +0000 (14:05 +0000)]
Fix #include's: search log.h locally, include string.h. The latter is required because we include conn.h, which includes resolve.h, which includes ng_ipaddr.h, which contains a macro using strlcpy() ...
Florian Westphal [Tue, 26 Feb 2008 22:50:35 +0000 (23:50 +0100)]
IPv6 support.
all references to struct sockaddr/in_addr have been
removed from src/ngircd.
libngipaddr (in src/ipaddr/) hides all the gory details.
See src/ipaddr/ng_ipaddr.h for API description.
Alexander Barton [Tue, 26 Feb 2008 20:35:43 +0000 (20:35 +0000)]
Updated ChangeLog to include 0.11.1.
Rolf Eike Beer [Sun, 24 Feb 2008 18:57:38 +0000 (18:57 +0000)]
Fix sending of JOINs between servers.
This does hit only operators that join a channel with at least 2 servers active in the net
the server the oper connects to sends "channel^Go" to the other servers
the other server first searches for the channel and then strips the modes from the channel name
he has to do the other way round: first strip and then check the channel name.
Florian Westphal [Sun, 24 Feb 2008 18:44:41 +0000 (18:44 +0000)]
Channel_Mode cleanups
- better indentation
- move answering request into seperate function.
Alexander Barton [Sun, 17 Feb 2008 15:35:46 +0000 (15:35 +0000)]
LaunchDaemon plist for Mac OS X/Darwin launchd.
Alexander Barton [Sun, 17 Feb 2008 15:31:14 +0000 (15:31 +0000)]
Install a LaunchDaemon script to start/stop ngIRCd on Mac OS X.
Alexander Barton [Sun, 17 Feb 2008 13:59:39 +0000 (13:59 +0000)]
Added new test files to Xcode project.
Alexander Barton [Sun, 17 Feb 2008 13:51:00 +0000 (13:51 +0000)]
Removed the SQUIT test for now, actually we don't support it yet.
Alexander Barton [Sun, 17 Feb 2008 13:26:41 +0000 (13:26 +0000)]
Implemented IRC commands INFO, USERS (dummy), and SUMMON (dummy).
Dana Dahlstrom [Sun, 17 Feb 2008 00:00:12 +0000 (00:00 +0000)]
Include flags in RPL_WHOREPLY messages.
RPL_WHOREPLY messages generated by IRC_WHO don't include flags (*,@,+)
that should appear according to this description:
http://www.mishscript.de/reference/rawhelp3.htm#raw352
Other IRC servers do include the flags.
Modify who-test.e to expose missing flags,
modify ngircd-test.conf to accommodate who-test.e, and fix
irc-info.c to correct these problems.
Dana Dahlstrom [Sat, 16 Feb 2008 11:27:48 +0000 (11:27 +0000)]
Don't send trailing space in MODE messages
Under some circumstances ngIRCd currently issues a channel MODE message
with a trailing space after the last parameter, which isn't permitted by
the grammar in RFC 2812 section 2.3.1:
http://tools.ietf.org/html/rfc2812#section-2.3.1
The following patch modifies mode-test.e to expose this, and modifies
irc-mode.c to correct it.
Florian Westphal [Sat, 16 Feb 2008 11:21:33 +0000 (11:21 +0000)]
IRC_JOIN cleanups.
- put sending of mode and forwarding of JOIN to other clients
into seperate function.
- put sending of topic/channel names into seperate function.
- put access check into seperate function.
- translate/remove remaining german comments.
- stop if JOIN to a channel in a list (JOIN #a,#,b,#c...) fails
(This doesn't change the behaviour: skip-to-next-channel-on-error
did never work as intended)
Florian Westphal [Mon, 11 Feb 2008 11:06:31 +0000 (11:06 +0000)]
Make IRC_WHO also search username/servername/hostname.
Dana Dahlstrom reported that IRC_WHO did not follow
RFC 2812, Section 3.6.1. Specifically:
- IRC_WHO did not send "G" flag instead if "H" if client was away
- did not search username/servername/hostname etc. if argument
was not a channel.
Fix all of the above and tidy things up a bit.
Also add IRC_WHO test script contributed by Dana.
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.]
Florian Westphal [Tue, 5 Feb 2008 16:31:35 +0000 (16:31 +0000)]
Make Channel_Part name and reason parameters 'const'.
Florian Westphal [Tue, 5 Feb 2008 14:41:50 +0000 (14:41 +0000)]
Updated NEWS to reflect ChangeLog.
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]
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.
Alexander Barton [Tue, 5 Feb 2008 12:02:59 +0000 (12:02 +0000)]
Updated NEWS to reflect ChangeLog.
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.
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>.
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.
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.
Alexander Barton [Mon, 7 Jan 2008 23:06:24 +0000 (23:06 +0000)]
Updated Debian changelog [from 0.10.x; 0.11.x]
Alexander Barton [Mon, 7 Jan 2008 23:02:29 +0000 (23:02 +0000)]
Document NoDNS configuration option.
Florian Westphal [Mon, 7 Jan 2008 11:42:00 +0000 (11:42 +0000)]
IRC_PART could reference invalid memory.
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]
Alexander Barton [Wed, 2 Jan 2008 11:31:48 +0000 (11:31 +0000)]
Updated NEWS and ChangeLog files.
Florian Westphal [Wed, 2 Jan 2008 11:03:29 +0000 (11:03 +0000)]
[Resolver]: Use dotted-decimal IP address if hostname is >= 64
Florian Westphal [Wed, 2 Jan 2008 10:29:51 +0000 (10:29 +0000)]
io_event_disable: return if event-to-disable is already off
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.
Florian Westphal [Thu, 13 Dec 2007 01:30:16 +0000 (01:30 +0000)]
Fix format arg: ListenAddress was printed instead of Bind address.
Florian Westphal [Thu, 13 Dec 2007 01:05:01 +0000 (01:05 +0000)]
Fix format string in error path: didn't print strerror(errno)
Florian Westphal [Tue, 11 Dec 2007 11:29:43 +0000 (11:29 +0000)]
implement '/STAT u' (uptime)
Florian Westphal [Fri, 7 Dec 2007 21:19:01 +0000 (21:19 +0000)]
Fix fmt string: int, not long
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
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.
Florian Westphal [Fri, 23 Nov 2007 16:28:05 +0000 (16:28 +0000)]
document new "Bind" server config option in changelog.
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.
Alexander Barton [Wed, 21 Nov 2007 12:20:32 +0000 (12:20 +0000)]
Funktions to handle numerics sent to the server.
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.
Alexander Barton [Tue, 20 Nov 2007 21:39:35 +0000 (21:39 +0000)]
Re-added doc/SSL.txt to distribution -- got lost somewhere!?
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.
Alexander Barton [Mon, 19 Nov 2007 23:38:59 +0000 (23:38 +0000)]
Remove some bogus files from project ...
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.
Alexander Barton [Sun, 18 Nov 2007 15:07:16 +0000 (15:07 +0000)]
Adjust test suite to be usable on HP/UX 11.11 :-)
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.
Florian Westphal [Thu, 15 Nov 2007 01:03:29 +0000 (01:03 +0000)]
add tiny note about ngircd using syslog(3) by default.
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".
Florian Westphal [Thu, 25 Oct 2007 11:03:02 +0000 (11:03 +0000)]
Document NoDNS Option in changelog
Florian Westphal [Thu, 25 Oct 2007 11:01:19 +0000 (11:01 +0000)]
New config option NoDNS: disables all DNS queries.
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.
Alexander Barton [Sun, 14 Oct 2007 14:17:32 +0000 (14:17 +0000)]
Updates NEWS to reflect changes in CVS HEAD
Alexander Barton [Sun, 14 Oct 2007 12:08:57 +0000 (12:08 +0000)]
Fixed propagation of channel mode 'P' on server links.
Alexander Barton [Sun, 14 Oct 2007 11:25:45 +0000 (11:25 +0000)]
Xcode project: include manual page template files, not generated pages.
Alexander Barton [Sun, 14 Oct 2007 10:37:20 +0000 (10:37 +0000)]
Updated Mac OS X project file for Xcode.
Florian Westphal [Sat, 13 Oct 2007 20:45:11 +0000 (20:45 +0000)]
fix doc and manpage wrt. MaxConnections, MaxConnectionsIP and MaxJoins values
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.
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.
Alexander Barton [Thu, 4 Oct 2007 15:18:48 +0000 (15:18 +0000)]
Made pointer to the mailing list more prominent.
Alexander Barton [Thu, 4 Oct 2007 15:03:55 +0000 (15:03 +0000)]
Numeric 317: implemented "signon time" (displayed in WHOIS result).
Alexander Barton [Thu, 4 Oct 2007 10:14:52 +0000 (10:14 +0000)]
Updated documentation ("Passive" option, for example).
Florian Westphal [Thu, 2 Aug 2007 10:16:28 +0000 (10:16 +0000)]
we now support /WALLOPS
Florian Westphal [Thu, 2 Aug 2007 10:14:26 +0000 (10:14 +0000)]
implement /WALLOPS as described in RFC 2812, section 4.7.
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>.
Florian Westphal [Sat, 21 Jul 2007 18:46:28 +0000 (18:46 +0000)]
last fix accidentially broke reconnect timer.
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.
Florian Westphal [Thu, 28 Jun 2007 05:15:12 +0000 (05:15 +0000)]
Add new server config option to disable automatic connect. (Tassilo Schweyer)
Alexander Barton [Wed, 13 Jun 2007 14:32:13 +0000 (14:32 +0000)]
Updated documentation to include changes of ngIRCd 0.10.2.
Florian Westphal [Mon, 11 Jun 2007 20:06:46 +0000 (20:06 +0000)]
fix compile /w gcc 2.95 (reported by Tassilo Schweyer)
Alexander Barton [Sat, 26 May 2007 10:44:12 +0000 (10:44 +0000)]
Updated config.guess and config.sub.
Alexander Barton [Sun, 20 May 2007 22:37:05 +0000 (22:37 +0000)]
Add note to INSTALL document.
Alexander Barton [Thu, 17 May 2007 23:38:14 +0000 (23:38 +0000)]
Updated ChangeLog.
Alexander Barton [Thu, 17 May 2007 23:34:24 +0000 (23:34 +0000)]
Reworked read and write buffer handling, introduced WRITEBUFFER_SLINK_LEN.
Alexander Barton [Thu, 17 May 2007 15:16:47 +0000 (15:16 +0000)]
Zip_Flush(): close the connection in all error cases.
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().
Alexander Barton [Thu, 17 May 2007 13:49:49 +0000 (13:49 +0000)]
Make Zip_Flush() more graceful.
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.
Florian Westphal [Wed, 9 May 2007 13:21:11 +0000 (13:21 +0000)]
make needlesly global function Conn_Write static.
Florian Westphal [Wed, 9 May 2007 08:55:14 +0000 (08:55 +0000)]
remove ZBUFFER constants and increase max buffer size of server links
Florian Westphal [Wed, 2 May 2007 12:34:30 +0000 (12:34 +0000)]
fix compressed server links
Alexander Barton [Mon, 9 Apr 2007 01:24:05 +0000 (01:24 +0000)]
2007 :-)
Alexander Barton [Sun, 8 Apr 2007 11:39:08 +0000 (11:39 +0000)]
Updated documentation.
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
Florian Westphal [Tue, 3 Apr 2007 22:08:10 +0000 (22:08 +0000)]
put parentheses around argument
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.
Florian Westphal [Mon, 29 Jan 2007 21:13:26 +0000 (21:13 +0000)]
return false instead of NULL in error path
Alexander Barton [Tue, 23 Jan 2007 16:07:19 +0000 (16:07 +0000)]
Remove Client_DestroyNow() to keep semantik "every CONNECTON has a CLIENT".
Florian Westphal [Fri, 19 Jan 2007 13:52:54 +0000 (13:52 +0000)]
fix broken IO_DEBUG build
Florian Westphal [Thu, 18 Jan 2007 00:25:26 +0000 (00:25 +0000)]
io_event_add: return if eventtype is already registered.
Florian Westphal [Fri, 29 Dec 2006 14:09:48 +0000 (14:09 +0000)]
add support for predefined-channel configuration of k and l modes
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).
Alexander Barton [Thu, 28 Dec 2006 14:04:28 +0000 (14:04 +0000)]
distclean: remove "html" folder.
Alexander Barton [Thu, 28 Dec 2006 13:53:19 +0000 (13:53 +0000)]
Updated documentation, refer to all the supported IO APIs.
Alexander Barton [Thu, 28 Dec 2006 13:34:43 +0000 (13:34 +0000)]
added "portabtest" binary to list of files to ignore.
Alexander Barton [Thu, 28 Dec 2006 13:20:07 +0000 (13:20 +0000)]
Added .cvsignore files to hide generated files from CVS.