12 years agoCosmetic whitespace and line length fixes, mostly in Send_Message(). bug77-PRIVMSG-NOTICE
Alexander Barton [Sun, 27 Jul 2008 13:50:51 +0000 (15:50 +0200)]
Cosmetic whitespace and line length fixes, mostly in Send_Message().

12 years agoAdded "message-test" to Makefile, so it is distrubuted and run.
Alexander Barton [Sun, 27 Jul 2008 12:45:04 +0000 (14:45 +0200)]
Added "message-test" to Makefile, so it is distrubuted and run.

12 years agoCleaned up PRIVMSG and NOTICE patches.
Brandon Beresini [Fri, 13 Jun 2008 04:54:05 +0000 (21:54 -0700)]
Cleaned up PRIVMSG and NOTICE patches.

12 years agoCumulative Message Patch
Brandon Beresini [Wed, 11 Jun 2008 18:35:50 +0000 (11:35 -0700)]
Cumulative Message Patch

12 years agoDon't allow empty channel names ("#") in strict RFC mode.
Alexander Barton [Tue, 22 Jul 2008 11:22:54 +0000 (13:22 +0200)]
Don't allow empty channel names ("#") in strict RFC mode.

This closes Bug #88.

Patch proposed by Eric <>, but with wrong length
comparision: please note that Channel_IsValidName() checks the name
INCLUDING the prefix, so the test must be length<=1!

12 years agoReturn 461 (syntax error) on "JOIN :" and "PART :"
Alexander Barton [Tue, 22 Jul 2008 11:18:19 +0000 (13:18 +0200)]
Return 461 (syntax error) on "JOIN :" and "PART :"

Up to this patch ngIRCd did not return any result (GIT master) or a badly
formated 403 (":irc.server 403 test  :No such channel" [note the two
spaces!], branch-0-12-x) on the above commands, this patch changes the
behaviour to reflect ircd 2.11 which returns 461 in both cases.

12 years agoChannel_Join(): Code cleanup.
Alexander Barton [Tue, 22 Jul 2008 11:07:57 +0000 (13:07 +0200)]
Channel_Join(): Code cleanup.

12 years agoAdded more supported and tested platforms to doc/Platforms.txt.
Alexander Barton [Mon, 21 Jul 2008 12:59:28 +0000 (14:59 +0200)]
Added more supported and tested platforms to doc/Platforms.txt.

12 years agoFixes to misc-test: accept "localhost.<domain>" as well as "localhost"
Alexander Barton [Mon, 21 Jul 2008 11:40:22 +0000 (13:40 +0200)]
Fixes to misc-test: accept "localhost.<domain>" as well as "localhost"

Some operating systems, for example OpenBSD, use "localhost.<domain>"
instead of "localhost", so the "who-test" expecting "localhost" failed
on such systems.

(Please see 149859c5fecc..., which fixes this for the who-test already)

12 years agoRevert "dpkg-shlibdeps: warning: dependency on [..]"
Alexander Barton [Wed, 9 Jul 2008 16:36:40 +0000 (18:36 +0200)]
Revert "dpkg-shlibdeps: warning: dependency on [..]"

- Solaris needs both -lsocket _and_ -lnsl
- A/UX needs -lUTIL

"... which totally sucks because we'd link libnsl on Linux, too
(where its not needed at all). So, we have to figure out how to tell
autocrap to NOT put -lnsl there unless it exports a symbol we need.
This also means that [...] has to be reverted (or done properly)."
-- Florian Westphal @ #ngircd

This reverts commit 2b14234abc252383679bae2d23861b773dc9713e.

12 years agodpkg-shlibdeps: warning: dependency on [..]
Florian Westphal [Mon, 30 Jun 2008 20:50:42 +0000 (22:50 +0200)]
dpkg-shlibdeps: warning: dependency on [..]
(they use none of its symbols).

So, rip out that AC_CHECK_LIB cruft, pointed out by Christoph Biedl.

If there are platforms that really need that we should
only link when we actually use these libraries.

12 years agoMerge changes
Alexander Barton [Fri, 27 Jun 2008 04:07:41 +0000 (06:07 +0200)]
Merge changes

Merge commit 'alex/master'

Alexander Barton [Fri, 27 Jun 2008 03:55:45 +0000 (05:55 +0200)] Don't set AUTO{CONF|MAKE}_VERSION and WANT_AUTO{CONF|MAKE}

On some systems (for example Gentoo Linux, FreeBSD, and OpenBSD), these
variables are used to select which version of GNU automake and autoconf
to use, but we shouldn't depend on a specific version -- instead we
should use the "system default". So probably it is up to the user to
set these variables accordingly to set up some wrapper scripts of his
operating system distribution.

12 years correctly test for and export ACLOCAL variable
Alexander Barton [Fri, 27 Jun 2008 03:44:04 +0000 (05:44 +0200)] correctly test for and export ACLOCAL variable

12 years agoTranslated comments from German to English
Eric Grunow [Fri, 13 Jun 2008 00:27:07 +0000 (17:27 -0700)]
Translated comments from German to English

12 years agoFix GCC warnings for possibly uninitialized variables in IRC_JOIN
Alexander Barton [Mon, 16 Jun 2008 11:07:50 +0000 (13:07 +0200)]
Fix GCC warnings for possibly uninitialized variables in IRC_JOIN

This patch fixes the following two warnings of GCC 4.2.4:

irc-channel.c: In function "IRC_JOIN":
 warning: "lastkey" may be used uninitialized in this function
 warning: "lastchan" may be used uninitialized in this function

12 years agoGIT: added src/src/ to ignore list.
Alexander Barton [Wed, 11 Jun 2008 14:02:06 +0000 (16:02 +0200)]
GIT: added src/src/ to ignore list.

12 years agoAllow mixed line terminations (CR+LF/CR/LF) in non-RFC-compliant mode
Alexander Barton [Wed, 11 Jun 2008 14:00:38 +0000 (16:00 +0200)]
Allow mixed line terminations (CR+LF/CR/LF) in non-RFC-compliant mode

Up to now ngIRCd accepted CR+LF as well as a single CR or LF in "non RFC
compliant" mode (the default). But ngIRCd became confused when it received
data containing mixed line endings (e. g. "111\r222\n333\r\n").

This patch enables ngIRCd (in "non RFC compliant" mode) to detect CR+LF,
CR, and LF as equally good line termination sequences and to always end the
command after the first one detected.

Some clients (for exmaple Trilian) are that ... broken to send such mixed
line terminations ...

First patch proposed by Scott Perry <>,
Thanks to Ali Shemiran <> for testing!

12 years agoDon't allow stray \r or \n in command parameters
Alexander Barton [Fri, 30 May 2008 12:49:56 +0000 (14:49 +0200)]
Don't allow stray \r or \n in command parameters

If ngircd receives an input line like "COMMAND arg\nIRRELEVANT\r\n",
"arg\nIRRELEVANT" is passed as an argument to COMMAND. This can lead
to output like:

:ngircd.test.server 322 nick #chan 1 :
:ngircd.test.server 322 nick #nxtchan 1 :

Worse, this allows clients to piggyback irc commands, e.g.
"TOPIC #a :test\n:fake!~a@nonexistant JOIN :#a\r\n", which
causes the client to receive a JOIN command during /LIST output.

Bug reported by Scott Perry, first patch by Florian Westphal.

12 years agoGIT: ignore de.barton.ngircd.plist, it is a generated file.
Alexander Barton [Wed, 28 May 2008 01:00:22 +0000 (03:00 +0200)]
GIT: ignore de.barton.ngircd.plist, it is a generated file.

12 years agongircd.init: use LSB logging functions, if available.
Alexander Barton [Tue, 27 May 2008 23:50:18 +0000 (01:50 +0200)]
ngircd.init: use LSB logging functions, if available.

12 years ago--configtest: return non-zero exit code if there are errors
Alexander Barton [Tue, 27 May 2008 22:31:20 +0000 (00:31 +0200)]
--configtest: return non-zero exit code if there are errors

12 years agoHandle_Buffer(): code cleanup.
Alexander Barton [Mon, 26 May 2008 21:38:32 +0000 (23:38 +0200)]
Handle_Buffer(): code cleanup.

Both callers ignore the return code of this function, so get rid of it,
but make sure that the client is disconnected on errors.

12 years agoConn_Handler(): cleanup code, add/translate comments.
Alexander Barton [Mon, 26 May 2008 19:38:27 +0000 (21:38 +0200)]
Conn_Handler(): cleanup code, add/translate comments.

In addition, the "timeout" variable has been removed because it is
unnecessary today: Handle_Buffer() handles all the data it can handle,
and io_dispatch() returns immediately when new data is available. So
we don't have to double-check but better sleep. Pointed out by Florian.

12 years agoUse strtok_r instead of strchr in IRC_JOIN.
Scott Perry [Mon, 26 May 2008 10:38:15 +0000 (12:38 +0200)]
Use strtok_r instead of strchr in IRC_JOIN.

This patch does significant cleanup on the join code by using strtok_r
instead of mangling strchr to parse channel names and keys in parallel when
a JOIN command contains a list of channels and keys.

Also adds an strtok_r implementation to libportab.

12 years agoMac OS X LaunchDaemon script: log messages to /Library/Logs/ngIRCd.log
Alexander Barton [Mon, 26 May 2008 15:48:02 +0000 (17:48 +0200)]
Mac OS X LaunchDaemon script: log messages to /Library/Logs/ngIRCd.log

12 years don't check for "obvious" standard functions.
Florian Westphal [Sun, 25 May 2008 18:16:25 +0000 (20:16 +0200)] don't check for "obvious" standard functions.

Drop checks for the following C standard functions:
malloc, memmove, memset, realloc, strchr, strcspn, strerror, strstr.

Rationale: These are standard K&R/C89 functions, no point in
''making sure they exist''.

12 years agoReset client idle time on NICK, JOIN, and PART
Alexander Barton [Sat, 24 May 2008 19:50:54 +0000 (21:50 +0200)]
Reset client idle time on NICK, JOIN, and PART

12 years agoRemove ListenIPv4/ListenIPv6 options.
Florian Westphal [Mon, 19 May 2008 12:34:48 +0000 (14:34 +0200)]
Remove ListenIPv4/ListenIPv6 options.

Use "Listen = list,of,addresses" instead.

12 years agomake Listen parameter a comma-seperated list of addresses.
Florian Westphal [Sun, 18 May 2008 22:12:41 +0000 (00:12 +0200)]
make Listen parameter a comma-seperated list of addresses.

this also obsoletes ListenIPv4 and ListenIPv6 options.
If Listen is unset, it is treated as Listen="::,".

Note: ListenIPv4 and ListenIPv6 options are still recognized,
but ngircd will print a warning if they are used in the config file.

Also, some plattforms require that ai_socktype
is set in the getaddrinfo() hints structure.

12 years agoAdd option aliases -V (for --version) and -h (for --help).
Jari Aalto [Fri, 15 Feb 2008 19:29:24 +0000 (21:29 +0200)]
Add option aliases -V (for --version) and -h (for --help).

This patch adds -h and -V short options (to complement the usage).

It is based on a patch attached to Debian bug #466063, see

Idea by Jari Aalto <>,
patch adapted by Alexander Barton <>.

12 years agoAdd FAQ entry for 'Where is the log file'?
Florian Westphal [Thu, 15 May 2008 13:41:23 +0000 (15:41 +0200)]
Add FAQ entry for 'Where is the log file'?

12 years agoAdd tests for MOTD, VERSION, TIME, USERHOST
Brandon Beresini [Thu, 15 May 2008 06:39:05 +0000 (23:39 -0700)]

The misc-test.e file is also somewhat reorganized and commented here.

Patch from Brandon Beresini, Bryan Caldwell and Dana Dahlstrom.

12 years agoUpdated list of authors (AUTHORS file)
Alexander Barton [Tue, 13 May 2008 14:21:14 +0000 (16:21 +0200)]
Updated list of authors (AUTHORS file)

12 years agoUpdate master development branch
Alexander Barton [Tue, 13 May 2008 14:12:15 +0000 (16:12 +0200)]
Update master development branch

- use "dev" instead of "HEAD" as "version number",
- update ChangeLog and NEWS to reflect the 0.12.0 release.

12 years agoMerge commit 'aad49bd260494878aed6795c7a897ad1d28c3082' alex/master origin/HEAD origin/master
Alexander Barton [Tue, 13 May 2008 10:14:14 +0000 (12:14 +0200)]
Merge commit 'aad49bd260494878aed6795c7a897ad1d28c3082'

12 years agoThis patch implements a (maybe) compliant WHOWAS command.
Scott Perry [Mon, 12 May 2008 10:59:55 +0000 (12:59 +0200)]
This patch implements a (maybe) compliant WHOWAS command.

It is hard to test this in the test suite because we 1) shouldn't rely on
previous tests populating WHOWAS and 2) don't connect a user for more than 30

Also makes WHOWAS return ERR_NONICKNAMEGIVEN_MSG as implied by RFC.

12 years agoIf bind() fails, also print ip address and not just the port number.
Florian Westphal [Mon, 12 May 2008 16:46:55 +0000 (18:46 +0200)]
If bind() fails, also print ip address and not just the port number.

12 years agoUpdate ngIRCd manual pages
Alexander Barton [Sun, 11 May 2008 15:08:46 +0000 (17:08 +0200)]
Update ngIRCd manual pages

- Update timestamp,
- enhance some phrasing,
- and fix "Passive" ([Server]) formatting.

12 years agoGIT: ignore symbolic links to tests in testsuite directory
Alexander Barton [Sun, 11 May 2008 13:20:46 +0000 (15:20 +0200)]
GIT: ignore symbolic links to tests in testsuite directory

Added symbolic links to new tests (invite-test, join-test, and kick-test)
to .gitignore file.

12 years agoFixes to who-test: accept "localhost.<domain>" as well as "localhost"
Alexander Barton [Sun, 11 May 2008 13:17:22 +0000 (15:17 +0200)]
Fixes to who-test: accept "localhost.<domain>" as well as "localhost"

Some operating systems, for example OpenBSD, use "localhost.<domain>"
instead of "localhost", so the "who-test" expecting "localhost" failed
on such systems.

12 years agong_ipaddr.h must include netinet/in.h.
Florian Westphal [Sat, 10 May 2008 19:49:51 +0000 (21:49 +0200)]
ng_ipaddr.h must include netinet/in.h.

compile on FreeBSD 5.4 failed with:
./../ipaddr/ng_ipaddr.h:34: error: field `sin4' has incomplete type

Reported and tested by Jefferson S Almeida.

12 years agoRemoved space after # so that Cygwin's version of expect recognizes comments.
Brandon Beresini [Fri, 9 May 2008 17:23:43 +0000 (10:23 -0700)]
Removed space after # so that Cygwin's version of expect recognizes comments.

12 years agoFix secret channel information leak
Ali Shemiran [Fri, 9 May 2008 19:47:31 +0000 (21:47 +0200)]
Fix secret channel information leak

/who on a secret channel that the user is not a member of
now returns proper RPL_ENDOFWHO_MSG instead of nothing.

12 years agoAdded Cygwin uid kludge. (verified working) [Thu, 8 May 2008 05:38:00 +0000 (22:38 -0700)]
Added Cygwin uid kludge. (verified working)

12 years agoAnglified and improved comments in channel.c and channel.h
Eric Grunow [Thu, 8 May 2008 01:15:04 +0000 (03:15 +0200)]
Anglified and improved comments in channel.c and channel.h

[Dana Dahlstrom: repair tab/space conversion in patch]

12 years agoImplement IRC commands SERVICE, SERVLIST, and SQUERY as dummy functions bug74-SrvCmds
Alexander Barton [Mon, 5 May 2008 16:06:43 +0000 (18:06 +0200)]
Implement IRC commands SERVICE, SERVLIST, and SQUERY as dummy functions

SERVICE, SERVLIST, and SQUERY are required by RFC 2812 (it states in
section 3 that "all commands described in this section MUST be implemented
by any server for this protocol." -- So we implement them without (much)
actual functionality ...

12 years agoAdd invite-test.e to test suite.
Florian Westphal [Sun, 4 May 2008 21:34:36 +0000 (23:34 +0200)]
Add invite-test.e to test suite.

12 years agoTests for the INVITE command.
Dana Dahlstrom [Sun, 4 May 2008 03:02:12 +0000 (20:02 -0700)]
Tests for the INVITE command.

12 years agoInvite: prefix last argument with colon when necessary.
Dana Dahlstrom [Sun, 4 May 2008 21:20:05 +0000 (23:20 +0200)]
Invite: prefix last argument with colon when necessary.

12 years agotests for JOIN and various replies
Dana Dahlstrom [Sat, 3 May 2008 22:46:02 +0000 (00:46 +0200)]
tests for JOIN and various replies

Brandon Beresini sent me a patch yesterday adding tests for JOIN under
various circumstances, which I believe he worked on with Bryan Caldwell
and Ali Shemiran. I made a few modifications; the result is below.

12 years agoAllow KICK to handle comma-delimited lists (of channels, nicks).
Bryan Caldwell [Mon, 5 May 2008 14:04:48 +0000 (16:04 +0200)]
Allow KICK to handle comma-delimited lists (of channels, nicks).

includes test cases.

- move code around to avoid duplication
- use const where possible
- integrate test case]

12 years agoInvite: Send RPL_AWAY to client sending the invite if target is away.
Florian Westphal [Sun, 4 May 2008 13:07:21 +0000 (15:07 +0200)]
Invite: Send RPL_AWAY to client sending the invite if target is away.

12 years agoFixes to who-test: accept any ident, escape some '*' flags.
Dana Dahlstrom [Sun, 4 May 2008 23:01:58 +0000 (16:01 -0700)]
Fixes to who-test: accept any ident, escape some '*' flags.

This prevents who-test.e from failing when ngircd
is performing ident lookups and an ident server is running.

12 years agoIRC_INVITE: coding style cleanup.
Florian Westphal [Sun, 4 May 2008 13:00:39 +0000 (15:00 +0200)]
IRC_INVITE: coding style cleanup.

12 years agoConstify some of Channel_Kick()s arguments.
Florian Westphal [Sat, 3 May 2008 19:41:32 +0000 (21:41 +0200)]
Constify some of Channel_Kick()s arguments.

12 years agoconstify Client_Search() argument.
Florian Westphal [Sat, 3 May 2008 19:20:02 +0000 (21:20 +0200)]
constify Client_Search() argument.

12 years agoAllow IRC ops to ignore channel limits when joining
Rolf Eike Beer [Sun, 4 May 2008 13:27:34 +0000 (15:27 +0200)]
Allow IRC ops to ignore channel limits when joining

Allow IRC ops to ignore any channel limit (bans, invite only etc.) when they
want to join a channel.

12 years agoHandle 1-character messages terminated with CR or LF correctly
Alexander Barton [Fri, 2 May 2008 00:14:15 +0000 (02:14 +0200)]
Handle 1-character messages terminated with CR or LF correctly

Code cleanup and fix for Bug #83, "ngIRCd chokes on 1-character messages" in
function Handle_Buffer(): the buffer is now correctly cleared when ngIRCd
receives 1-character messages terminated with either CR or LF (in violation
to RFC 2812, section 2.3 "Messages", 5th paragraph).

12 years agoOn AIX (for example) socklen_t is defined in sys/socket.h
Alexander Barton [Thu, 1 May 2008 18:25:39 +0000 (20:25 +0200)]
On AIX (for example) socklen_t is defined in sys/socket.h

On AIX and probably other systems socklen_t is defined in sys/socket.h,
so we have to include it here explicitly (tested by Florian).

12 years agoAlways enable modeless channels.
Florian Westphal [Thu, 1 May 2008 16:00:33 +0000 (18:00 +0200)]
Always enable modeless channels.

Modeless channels (+channels) are described in RFC 2811;
so my modifications to
('Add support for modeless channels')
to disable +channels for --strict-rfc configurations
were wrong. This reverts those changes.

12 years agoPrevent GIT to complain about opless-channel-test link
Alexander Barton [Thu, 1 May 2008 14:31:13 +0000 (16:31 +0200)]
Prevent GIT to complain about opless-channel-test link

12 years agoAdd support for modeless channels
Ali Shemiran [Thu, 1 May 2008 13:19:31 +0000 (15:19 +0200)]
Add support for modeless channels

Add support for modeless channels (+channels).

 - integrate test cases
 - don't support +channels when compiled with --strict-rfc
 - do not set +o mode for channel creator
 - force +nt mode when channel is created ]

12 years agoUpdated NEWS and ChangeLog for ngIRCd 0.12.0-pre2.
Alexander Barton [Tue, 29 Apr 2008 13:34:15 +0000 (15:34 +0200)]
Updated NEWS and ChangeLog for ngIRCd 0.12.0-pre2.

12 years ago--configtest: fix missing whitespace at "ConnectIPv4" option.
Alexander Barton [Tue, 29 Apr 2008 13:27:44 +0000 (15:27 +0200)]
--configtest: fix missing whitespace at "ConnectIPv4" option.

12 years ago--enable-ipv6: fix indentation in ./configure --help output.
Alexander Barton [Tue, 29 Apr 2008 13:26:20 +0000 (15:26 +0200)]
--enable-ipv6: fix indentation in ./configure --help output.

12 years agoMerge branch 'master' of git://
Alexander Barton [Tue, 29 Apr 2008 13:15:28 +0000 (15:15 +0200)]
Merge branch 'master' of git://

12 years agoTestsuite: remove erroneous ConfUID setting in config file.
Florian Westphal [Fri, 25 Apr 2008 22:38:57 +0000 (00:38 +0200)]
Testsuite: remove erroneous ConfUID setting in config file.

The config file for ngircds test suite contained obsolete
ConfUID/ConfGID settings, causing ngircd to needlesly complain when
started as non-root (which is hopefully the _normal_ case...)

12 years agoGet rid of cvs-version.* and CVSDATE definition.
Alexander Barton [Sun, 20 Apr 2008 21:10:22 +0000 (23:10 +0200)]
Get rid of cvs-version.* and CVSDATE definition.
(cherry picked from commit b187fac244f4e14705f882ba7c43eef0238e2830)

12 years agoDocumentation: get rid of some more references to CVS, switch to GIT.
Alexander Barton [Sun, 20 Apr 2008 20:48:05 +0000 (22:48 +0200)]
Documentation: get rid of some more references to CVS, switch to GIT.
(cherry picked from commit 6e9389b86c906c53a7797b8ced87a19195e16333)

12 years agoReport ERR_NOTONCHANNEL when trying to part a channel one is not member of. bug81-PART
Alexander Barton [Thu, 24 Apr 2008 21:52:54 +0000 (23:52 +0200)]
Report ERR_NOTONCHANNEL when trying to part a channel one is not member of.

When trying to part a channel ("PART #channel") the client is not member of
the daemon now correctly reports the numeric ERR_NOTONCHANNEL (442) insted

12 years agoChannel_Part(): Code and comment cleanup.
Alexander Barton [Thu, 24 Apr 2008 21:47:33 +0000 (23:47 +0200)]
Channel_Part(): Code and comment cleanup.

12 years agoIRC_PART(): code and comment cleanup.
Alexander Barton [Thu, 24 Apr 2008 21:46:59 +0000 (23:46 +0200)]
IRC_PART(): code and comment cleanup.

12 years agoIPv6: Add config options to disabe ipv4/ipv6 support.
Florian Westphal [Sun, 20 Apr 2008 22:45:19 +0000 (00:45 +0200)]
IPv6: Add config options to disabe ipv4/ipv6 support.

This also enables ipv6-only setups.

12 years agoDon't include doc/CVS.txt in distribution archive, use doc/GIT.txt now!
Alexander Barton [Sun, 20 Apr 2008 14:46:49 +0000 (16:46 +0200)]
Don't include doc/CVS.txt in distribution archive, use doc/GIT.txt now!
(cherry picked from commit a8e0eb62e9dce81ca4a5c5911428561b90bf2c6e)

12 years agoSynchronized branch-0-12-x (ngIRCd 0.12.0-pre1) with master.
Alexander Barton [Sun, 20 Apr 2008 14:20:53 +0000 (16:20 +0200)]
Synchronized branch-0-12-x (ngIRCd 0.12.0-pre1) with 
(cherry picked from commit 4ea29329674ff8ec6d772991a57c146b5d78d2ad)

12 years agoUpdated NEWS and ChangeLog for upcoming 0.12.0-pre1 release.
Alexander Barton [Sun, 20 Apr 2008 13:48:49 +0000 (15:48 +0200)]
Updated NEWS and ChangeLog for upcoming 0.12.0-pre1 release.

12 years agoUpdated copyright notice to read "2001-2008".
Alexander Barton [Sun, 20 Apr 2008 13:48:22 +0000 (15:48 +0200)]
Updated copyright notice to read "2001-2008".

12 years agoAdded make target "testsuite"
Alexander Barton [Sun, 20 Apr 2008 12:52:00 +0000 (14:52 +0200)]
Added make target "testsuite"

This make target runs the testsuite located in src/testsuite without running
alle the other tests that "make check" would run.

12 years agoFixed "xcode" make target (used to build ngIRCd with Mac OS X Xcode)
Alexander Barton [Sun, 20 Apr 2008 12:50:46 +0000 (14:50 +0200)]
Fixed "xcode" make target (used to build ngIRCd with Mac OS X Xcode)

12 years agoChannel_Mode: Remove duplicate code.
Florian Westphal [Sat, 19 Apr 2008 14:58:00 +0000 (16:58 +0200)]
Channel_Mode: Remove duplicate code.

Incidentially, this doesn't even change the
generated code...

12 years agoChannel_Mode: change order of if (set) and if (client) check.
Florian Westphal [Sat, 19 Apr 2008 14:51:42 +0000 (16:51 +0200)]
Channel_Mode: change order of if (set) and if (client) check.

12 years agoChannel_Mode: Re-indent switch.
Florian Westphal [Sat, 19 Apr 2008 14:45:31 +0000 (16:45 +0200)]
Channel_Mode: Re-indent switch.

No functional changes were made.

12 years agoChannel_Mode: check return type of Invite/Ban Add/Del function
Florian Westphal [Sat, 19 Apr 2008 14:17:11 +0000 (16:17 +0200)]
Channel_Mode: check return type of Invite/Ban Add/Del function

12 years agoChannel_Mode: unify 'b' and 'I' switch/case handling.
Florian Westphal [Sat, 19 Apr 2008 12:16:17 +0000 (14:16 +0200)]
Channel_Mode: unify 'b' and 'I' switch/case handling.

12 years agoChannel_Mode: Unify Del_Invite and Del_Ban handler
Florian Westphal [Sat, 19 Apr 2008 12:12:06 +0000 (14:12 +0200)]
Channel_Mode: Unify Del_Invite and Del_Ban handler

12 years agoConstify Lists_MakeMask argument and return type.
Florian Westphal [Sat, 19 Apr 2008 12:11:25 +0000 (14:11 +0200)]
Constify Lists_MakeMask argument and return type.

12 years agoChannel_Mode: Unify Add_Invite and Add_Ban handler
Florian Westphal [Sat, 19 Apr 2008 12:02:54 +0000 (14:02 +0200)]
Channel_Mode: Unify Add_Invite and Add_Ban handler

12 years agoEnable more compiler warnings when using Xcode.
Alexander Barton [Sun, 13 Apr 2008 21:43:12 +0000 (23:43 +0200)]
Enable more compiler warnings when using Xcode.

12 years agoGIT should ignore user preferences files inside Xcode projects.
Alexander Barton [Sat, 12 Apr 2008 21:29:58 +0000 (23:29 +0200)]
GIT should ignore user preferences files inside Xcode projects.

Added filter for GIT to ignore Xcode user preferences files (*.mode1v3 and
*.pbxuser) which are automatically generated inside the project bundle when
opened in Xcode.

12 years agoUpdated Xcode project file.
Alexander Barton [Sat, 12 Apr 2008 21:27:11 +0000 (23:27 +0200)]
Updated Xcode project file.

12 years agoConvert CVS commands to their git equivalents.
Florian Westphal [Sat, 12 Apr 2008 19:10:47 +0000 (21:10 +0200)]
Convert CVS commands to their git equivalents.

Also mention that patches should be sent to the mailing list.

12 years agoAdded "portabtest" binary to .gitignore file in src/portabtest/.
Alexander Barton [Wed, 9 Apr 2008 17:46:26 +0000 (19:46 +0200)]
Added "portabtest" binary to .gitignore file in src/portabtest/.

12 years agoInclude Mac OS X Xcode project in distribution archives. (Part 2)
Alexander Barton [Wed, 9 Apr 2008 17:24:22 +0000 (19:24 +0200)]
Include Mac OS X Xcode project in distribution archives. (Part 2)
I forgot to include the new in contrib/MacOSX/ngIRCd.xcodeproj/ ...

12 years agoInclude Mac OS X Xcode project in distribution archives.
Alexander Barton [Wed, 9 Apr 2008 17:09:23 +0000 (19:09 +0200)]
Include Mac OS X Xcode project in distribution archives.
Oops, it has not been included since ... ages??

12 years agoMoved .cvsignore files to .gitignore
Alexander Barton [Wed, 9 Apr 2008 16:54:52 +0000 (18:54 +0200)]
Moved .cvsignore files to .gitignore
Since we are using GIT starting from now, I converted all the
.cvsignore files to .gitignore files.

12 years agoFix client.c sparse warnings.
Florian Westphal [Fri, 4 Apr 2008 19:30:01 +0000 (19:30 +0000)]
Fix client.c sparse warnings.

client.c:72:6: warning: symbol 'Max_Users' was not declared. Should it be static?
client.c:72:21: warning: symbol 'My_Max_Users' was not declared. Should it be static?

12 years agoio.c: kill select FD_SETSIZE sanity check in io_library_init.
Florian Westphal [Thu, 3 Apr 2008 20:56:44 +0000 (20:56 +0000)]
io.c: kill select FD_SETSIZE sanity check in io_library_init.

We already have way too many.

12 years agoio.c: fix select FD_SETSIZE check when using epoll as io backend
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

12 years agoio.c: try to cut down the number of ifdefs.
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.