11 years agoMac OS X: fix test for packagemaker(1) tool in Makefile
Alexander Barton [Thu, 10 Sep 2009 09:48:14 +0000 (11:48 +0200)]
Mac OS X: fix test for packagemaker(1) tool in Makefile

11 years agoFix --with-{openssl|gnutls} to accept path names
Alexander Barton [Wed, 2 Sep 2009 12:28:09 +0000 (14:28 +0200)]
Fix --with-{openssl|gnutls} to accept path names

This patch fixes --with-openssl and --with-gnutls and enables both to
accept path names, so that you can use "./configure --with-XXX=/path".
All the other --with-XXX parameters support this already.

11 years agodo not add default listening port if ssl ports were specified
Florian Westphal [Mon, 31 Aug 2009 17:42:59 +0000 (19:42 +0200)]
do not add default listening port if ssl ports were specified

Cosmo Kastemaa reported that its impossible to create an ssl-only setup,
as ngircd binds to port 6667 by default, even if setting "Ports =".

Only add the default port if _both_ "Ports" and "SSLPorts" are

Fixes bugzilla #98.

11 years agoFix LSB header of Debian init script
Alexander Barton [Sat, 29 Aug 2009 21:57:39 +0000 (23:57 +0200)]
Fix LSB header of Debian init script

11 years agoUse AM_SILENT_RULES([yes]), if available
Alexander Barton [Sun, 16 Aug 2009 14:08:21 +0000 (16:08 +0200)]
Use AM_SILENT_RULES([yes]), if available

Starting with GNU automake 1.11 "AM_SILENT_RULES([yes])" is available to
make the build process less verbose ("Linux 2.6 style") which helps to
spot warning and error messages.

So we use it if it is available.

11 years agoUpdate NEWS and ChangeLog for next release
Alexander Barton [Wed, 12 Aug 2009 12:48:33 +0000 (14:48 +0200)]
Update NEWS and ChangeLog for next release

11 years agoUpdated doc/Platforms.txt
Alexander Barton [Tue, 4 Aug 2009 20:53:38 +0000 (22:53 +0200)]
Updated doc/Platforms.txt

11 years agoNew script contrib/
Alexander Barton [Tue, 4 Aug 2009 20:30:59 +0000 (22:30 +0200)]
New script contrib/

This script analyzes the build process of ngIRCd and generates output
suitable for inclusion in doc/Platforms.txt.

11 years agodoc/Platforms.txt: ngircd builds on hppa2.0w-hp-hpux11.11 target
Florian Westphal [Wed, 22 Jul 2009 20:06:36 +0000 (22:06 +0200)]
doc/Platforms.txt: ngircd builds on hppa2.0w-hp-hpux11.11 target

Goetz Hoffart reports successful compile on HPUX/HPPA (on ngircd mailing list):

             Target: hppa2.0w-hp-hpux11.11
           Compiler: gcc
     Compiler flags: -g -O2 -pipe -W -Wall -Wpointer-arith -Wstrict-prototypes -fstack-protector -D_XOPEN_SOURCE_EXTENDED
          Libraries: -lz -lnsl

     Syslog support: yes     Enable debug code: no
   zlib compression: yes           IRC sniffer: no
   Use TCP Wrappers: no        Strict RFC mode: no
   Zeroconf support: no          IRC+ protocol: yes
      IDENT support: no            I/O backend: "poll()"
      IPv6 protocol: no            SSL support: no

11 years agoClient_CheckID(): fix connection information
Alexander Barton [Fri, 17 Jul 2009 14:16:04 +0000 (16:16 +0200)]
Client_CheckID(): fix connection information

This patch fixes the following silly log messages:
'ID "XXX" already registered (on connection -1)!'

If the ID is already registered on a local connection, the local
connection ID is printed; and if the ID is connected via a remote
server, "via network" is displayed.

11 years agoFix return code of Conf_EnableServer()
Alexander Barton [Fri, 17 Jul 2009 12:55:30 +0000 (14:55 +0200)]
Fix return code of Conf_EnableServer()

Conf_EnableServer() only reports success if all required variables,
including host name and port, are set for the specific server.

11 years agoAUTHORS: update my email address
Florian Westphal [Mon, 8 Jun 2009 10:25:35 +0000 (12:25 +0200)]
AUTHORS: update my email address

11 years agoadd section and rfc number to comment about QUIT error
Florian Westphal [Thu, 4 Jun 2009 23:39:33 +0000 (01:39 +0200)]
add section and rfc number to comment about QUIT error

11 years agoenforce upper limit on maximum number of handled commands
Florian Westphal [Mon, 25 May 2009 20:25:18 +0000 (22:25 +0200)]
enforce upper limit on maximum number of handled commands

reported on #ngircd: pasting lots of lines into a channel can kill off
many people on the channel if the read buffer is drained quickly enough
and the client-side TCP can't keep up with the incoming data.

This implements a throttling scheme:
- an irc client may send up to 3 commands per second before a one second
pause is enforced.
- an irc client may send up to 256 bytes per second before a one second
pause is enforced.

After discussion with Alexander Barton, server <-> server links are
treated specially: There is no artificial limit on the number of bytes
sent per second, and up to 10 commands are processed per second before
a pause is enforced.

It may be neccessary to make those limits tuneable to accomondate larger
networks, but for now they are compile time values.

11 years agoconn.c: fix NumConnections imbalance
Florian Westphal [Sun, 17 May 2009 19:32:53 +0000 (21:32 +0200)]
conn.c: fix NumConnections imbalance

New_Server() can call Conn_Close() in its error paths,
but that function decrements the number of current active
connections. Thus we need to increment it earlier.

11 years agoSSL/TLS: fix error handling when ssl ctx init for outgoing server link fails
Florian Westphal [Sun, 17 May 2009 19:27:27 +0000 (21:27 +0200)]
SSL/TLS: fix error handling when ssl ctx init for outgoing server link fails

11 years agoSSL/TLS: fix error path in gnutls ssl ctx allocation
Florian Westphal [Sun, 17 May 2009 19:18:04 +0000 (21:18 +0200)]
SSL/TLS: fix error path in gnutls ssl ctx allocation

11 years agomanpage: move SSLConnect option to the right section
Florian Westphal [Sat, 16 May 2009 23:22:18 +0000 (01:22 +0200)]
manpage: move SSLConnect option to the right section

11 years agoSSL/TLS: remove redundant asserts/ifdefs
Florian Westphal [Fri, 15 May 2009 21:28:59 +0000 (23:28 +0200)]
SSL/TLS: remove redundant asserts/ifdefs

11 years agoSSL/TLS: proper indentation, remove erroneous comment
Florian Westphal [Wed, 13 May 2009 15:29:10 +0000 (17:29 +0200)]
SSL/TLS: proper indentation, remove erroneous comment

11 years agoUpdate copyright notice, it's 2009 already!
Alexander Barton [Tue, 5 May 2009 15:08:48 +0000 (17:08 +0200)]
Update copyright notice, it's 2009 already!

11 years agoUpdated Debian "changelog" file for ngIRCd 14.1 rel-14-1
Alexander Barton [Tue, 5 May 2009 11:14:23 +0000 (13:14 +0200)]
Updated Debian "changelog" file for ngIRCd 14.1

11 years agongIRCd release 14.1
Alexander Barton [Tue, 5 May 2009 10:58:51 +0000 (12:58 +0200)]
ngIRCd release 14.1

11 years agoAdded start/stop script for Red Hat based distributions
Alexander Barton [Tue, 5 May 2009 10:50:55 +0000 (12:50 +0200)]
Added start/stop script for Red Hat based distributions

Script contributed by Naoya Nakazawa <>.

11 years agoRenamed contrib/ to contrib/
Alexander Barton [Tue, 5 May 2009 09:41:26 +0000 (11:41 +0200)]
Renamed contrib/ to contrib/

11 years agosecurity: fix remotely triggerable crash in SSL/TLS code
Florian Westphal [Mon, 4 May 2009 21:51:24 +0000 (23:51 +0200)]
security: fix remotely triggerable crash in SSL/TLS code

When a server is running with SSL/TLS support compiled in,
it is trivial to crash the server by sending an MOTD request
via another server in the network.

- ONLY servers without ssl/tls support compiled in are not affected.
  Disabling SSL in the configuration (no ssl listening ports, etc)
  does NOT help.
- servers that are running standalone (i.e., not connected to any
  other servers) are not affected, either.

This affects all ngircd releases since ngircd 13 (earlier versions
have no SSL/TLS support).

11 years agoFixed "Conflicts:" line in debian/control: missing comma
Alexander Barton [Mon, 4 May 2009 09:23:19 +0000 (11:23 +0200)]
Fixed "Conflicts:" line in debian/control: missing comma

11 years agoDebian: build ngircd-full-dbg package
Alexander Barton [Wed, 29 Apr 2009 00:13:27 +0000 (02:13 +0200)]
Debian: build ngircd-full-dbg package

In addition to the "ngircd" and "ngircd-full" packages a new package named
"ngircd-full-dbg" is build: this package contains all the features of the
"full" package but includes debug code and both the --debug and --sniffer
options and the resulting binaries are _not_ stripped.

11 years agodebian/rules: whitespace fixes
Alexander Barton [Wed, 29 Apr 2009 00:12:56 +0000 (02:12 +0200)]
debian/rules: whitespace fixes

11 years agoFix server list announcement
Tassilo Schweyer [Sat, 25 Apr 2009 22:23:40 +0000 (00:23 +0200)]
Fix server list announcement

When ngircd announces the list of currently known servers
to a new (connecting) server, it sent the introducer of
the servers instead of the top server.

Assuming this network:
|    `
|         `

When irc4 connects to irc3, irc3 tells irc4 that irc5 was
connected to irc2. (irc2 had introduced irc5 to irc3; but thats
not what ngircd should have sent to the new server).

This also placed users on the wrong servers.

11 years agoDoxygen: update source code repository link to GIT
Alexander Barton [Fri, 24 Apr 2009 22:53:47 +0000 (00:53 +0200)]
Doxygen: update source code repository link to GIT

11 years agoallow ping timeout quit messages to show the timeout value
David Kingston [Fri, 24 Apr 2009 05:01:37 +0000 (00:01 -0500)]
allow ping timeout quit messages to show the timeout value

11 years agoirc-server: do not remove hostnames from info text
Florian Westphal [Wed, 22 Apr 2009 21:15:17 +0000 (23:15 +0200)]
irc-server: do not remove hostnames from info text

that code does not really make sense -- the info
text is freely cofngiureable and des not follow a specific

Also, that "+2" might have caused invalid memory accesses.

11 years agoconn-zip: fix error handling
Florian Westphal [Tue, 21 Apr 2009 17:49:15 +0000 (19:49 +0200)]
conn-zip: fix error handling

callers of (Un)Zip_Buffer() assume that
the function closes the connection on error.

However, this was not always the case.

11 years agoremove or translate old comments
Florian Westphal [Tue, 21 Apr 2009 06:40:10 +0000 (08:40 +0200)]
remove or translate old comments

11 years agoclient.c: remove unecessary comments
Florian Westphal [Mon, 20 Apr 2009 06:34:09 +0000 (08:34 +0200)]
client.c: remove unecessary comments

11 years agoadd const qualifier to pointers where possible
Florian Westphal [Sat, 11 Apr 2009 23:09:42 +0000 (01:09 +0200)]
add const qualifier to pointers where possible

11 years agongIRCd release 14 rel-14
Alexander Barton [Mon, 20 Apr 2009 09:36:27 +0000 (11:36 +0200)]
ngIRCd release 14

12 years agoDisplay IPv6 addresses as "[<addr>]" when accepting connections.
Alexander Barton [Fri, 10 Apr 2009 11:22:03 +0000 (13:22 +0200)]
Display IPv6 addresses as "[<addr>]" when accepting connections.

With this patch ngIRCd displays IPv6 addresses as "[<addr>]:<port>" when
accepting new connections and later, if no successful DNS lookup could
be made (or DNS is disabled altogether).

12 years agoXcode: #define include __DATE__ in VERSION
Alexander Barton [Fri, 10 Apr 2009 11:08:04 +0000 (13:08 +0200)]
Xcode: #define include __DATE__ in VERSION

Change VERSION to include the __DATE__ when compiling from within Xcode.

When building using "make xcode" or "make osxpkg" VERSION already is defined
to the "real" version number set in

12 years agoFix ChangeLog: Local channels are already implemented in Release 13
Alexander Barton [Thu, 9 Apr 2009 13:17:44 +0000 (15:17 +0200)]
Fix ChangeLog: Local channels are already implemented in Release 13

12 years agoFix up last Debian changelog entry
Alexander Barton [Mon, 30 Mar 2009 11:44:04 +0000 (13:44 +0200)]
Fix up last Debian changelog entry

12 years agongIRCd release 14~rc1 rel-14-rc1
Alexander Barton [Sun, 29 Mar 2009 15:16:02 +0000 (17:16 +0200)]
ngIRCd release 14~rc1

12 years agoUpdated NEWS and ChangeLog files
Alexander Barton [Sun, 29 Mar 2009 15:05:37 +0000 (17:05 +0200)]
Updated NEWS and ChangeLog files

12 years agoUpdated Debian/Linux init script
Alexander Barton [Sun, 29 Mar 2009 14:37:06 +0000 (16:37 +0200)]
Updated Debian/Linux init script

- PidFile, ServerUID and ServerGID are read from actual server configuration
- Exit code and behaviour is more LSB compliant
- New "status" and "test" sub-functions

12 years agomisspelling in ERR_NORECIPIENT reply
Dana Dahlstrom [Wed, 25 Mar 2009 19:44:40 +0000 (20:44 +0100)]
misspelling in ERR_NORECIPIENT reply

12 years agoAdd missing contributors to AUTHORS file
Alexander Barton [Wed, 11 Mar 2009 10:51:59 +0000 (11:51 +0100)]
Add missing contributors to AUTHORS file

12 years agotestsuite: add more predefined channels to server config
Florian Westphal [Fri, 6 Mar 2009 23:30:11 +0000 (00:30 +0100)]
testsuite: add more predefined channels to server config

make sure it creates & and +, and accepts channel names without
a special character (ngircd should treat
'Name = chan' as 'Name = #chan').

12 years agoallow creation of persistent modeless channels
Florian Westphal [Fri, 6 Mar 2009 23:21:43 +0000 (00:21 +0100)]
allow creation of persistent modeless channels

12 years agoadd and use Channel_IsModeless()
Florian Westphal [Fri, 6 Mar 2009 23:13:25 +0000 (00:13 +0100)]
add and use Channel_IsModeless()

avoid "name[0] == '+'" where possible, having Channel_IsModeless()
makes things much more obvious.

12 years agoEnhance INFO command to report compile time, if available
Alexander Barton [Thu, 5 Mar 2009 15:04:36 +0000 (16:04 +0100)]
Enhance INFO command to report compile time, if available

12 years agoUpdate NEWS and ChangeLog files
Alexander Barton [Tue, 3 Mar 2009 16:59:43 +0000 (17:59 +0100)]
Update NEWS and ChangeLog files

12 years agoChannel mode changes: break on error
Alexander Barton [Tue, 3 Mar 2009 15:33:40 +0000 (16:33 +0100)]
Channel mode changes: break on error

Don't echo multiple syntax error messages (461) on invalid commands,
but break after the first one.
In addition, this solves corrupted 'Unknown mode "+' messages.

12 years agoChannel_Mode(): code cleanup (no functional changes)
Alexander Barton [Tue, 3 Mar 2009 14:06:34 +0000 (15:06 +0100)]
Channel_Mode(): code cleanup (no functional changes)

12 years agoTLS/SSL: remove useless error message when ssl connection is closed
Florian Westphal [Thu, 5 Feb 2009 22:42:56 +0000 (23:42 +0100)]
TLS/SSL: remove useless error message when ssl connection is closed

When using OpenSSL, the following annoying "error" message was logged whenever
an encrypted connection was shut down in a orderly fashion:
TLS/SSL Connection shutdown: ConnSSL_Read: Unable to determine error

of course, this isn't an error at all.

12 years agoupdate ChangeLog.
Florian Westphal [Wed, 4 Feb 2009 22:33:46 +0000 (23:33 +0100)]
update ChangeLog.

12 years agoSSL/TLS: clear all ssl realted flags on shutdown
Florian Westphal [Wed, 4 Feb 2009 22:23:12 +0000 (23:23 +0100)]
SSL/TLS: clear all ssl realted flags on shutdown

one ssl related flags was not cleared on ssl shutdown.
introduce and use CONN_SSL_FLAGS_ALL to zap them all.

12 years agoTLS/SSL: fix memory leak when using compressed server links with ssl
Florian Westphal [Wed, 4 Feb 2009 22:01:53 +0000 (23:01 +0100)]
TLS/SSL: fix memory leak when using compressed server links with ssl

commit 6bc2d3d06e9cb4da68ea4b63d9b6b219d88ab927
(New connection option CONN_RFC1459) forgot to adjust the ssl bitmasks.

The result is that when a compressed AND encrypted server link goes down
the memory allocated by zlib and the r/w buffers are no longer
free'd as the previous ConnSSL_Free() would then also remove the CONN_ZIP flag
from the flag mask.

12 years agoFix spelling of log message: "channek" vs. "channel" ... ChannelKeyFile
Alexander Barton [Fri, 9 Jan 2009 19:18:23 +0000 (20:18 +0100)]
Fix spelling of log message: "channek" vs. "channel" ...

12 years agoChannel key file: store file name and open on each access.
Alexander Barton [Sun, 4 Jan 2009 16:26:50 +0000 (17:26 +0100)]
Channel key file: store file name and open on each access.

Store the file name of channel key files and reopen them on each access
(on each JOIN command) insted of just storing the file handles.

This eliminates the special requirements (no delete) and makes sure
that always the actual file contents are used in all circumstances.

12 years agoSupport individual channel keys for pre-defined channels.
Alexander Barton [Thu, 1 Jan 2009 21:26:13 +0000 (22:26 +0100)]
Support individual channel keys for pre-defined channels.

This patch introduces the new configuration variable "KeyFile" for
[Channel] sections in ngircd.conf. Here a file can be configured for each
pre-defined channel which contains individual channel keys for different
users. This file is line-based and must have the following syntax:


<user> and <nick> can contain the wildcard character "*".

Please not that these channel keys are only in effect, when the channel
has a regular key set using channel mode "k"!

12 years agoRFC 2812, sec. 3.3.1: really check for the last dot
Alexander Barton [Tue, 20 Jan 2009 15:49:34 +0000 (16:49 +0100)]
RFC 2812, sec. 3.3.1: really check for the last dot

This fixes commit 5a3128243f4b60 and makes the test suite ("make check")
run again without errors.

12 years agoirc.c: reject masks with wildcard after last dot
Florian Westphal [Sat, 17 Jan 2009 23:33:34 +0000 (00:33 +0100)]
irc.c: reject masks with wildcard after last dot

RFC 2812 says in section 3.3.1 ("Private Messages"):

The mask MUST have at least 1 (one) "." in it and no wildcards
following the last ".".

12 years agoirc.c: Fix handling of channels containing dots
Florian Westphal [Sat, 17 Jan 2009 23:12:28 +0000 (00:12 +0100)]
irc.c: Fix handling of channels containing dots

commit 2546a13ad2949192eb70bf21e114ec60af287ee4
('Cumulative Message Patch') broke PRIVMSG to channels
containing dots.

Fix this by switching evaluation order:
Check first if the target matches a existing channel and only do a check
for target masks if that failed.

PRIVMSG with host/server masks is described in RFC 2812, section 3.3.1.

Makes one wonder how a server is _really_ supposed to tell the difference
between hostmasks and channel names.


12 years agoUpdate ngircd.spec file
Ask Bjørn Hansen [Tue, 13 Jan 2009 07:31:18 +0000 (23:31 -0800)]
Update ngircd.spec file

- Change Copyright to License
- Update URL
- Make BuildRoot use %{_tmppath} macro
- Add basic BuildRequires
- Compile with zlib and openssl
- Install all docs in standard document location

Signed-off-by: Ask Bjørn Hansen <>
12 years agoremove unneeded LOG_DEBUG when not compiling with DEBUG support
Florian Westphal [Fri, 9 Jan 2009 23:44:34 +0000 (00:44 +0100)]
remove unneeded LOG_DEBUG when not compiling with DEBUG support

when ngircd is build without DEBUG enabled, LOG_DEBUG messages
are always discarded.

To avoid the extra code, ngircd has a LogDebug() wrapper which
gets removed by the compiler when compiling without DEBUG defined.

Update a few functings which were using the
Log(LOG_DEBUG, .. interface directly without #ifdef DEBUG guards.

   text    data     bss     dec     hex filename
 127748    1900   28280  157928   268e8 ngircd.before
 126836    1896   28280  157012   26554 ngircd.after

12 years agodocumentation: gnutls does not support password-protected privkeys
Florian Westphal [Fri, 9 Jan 2009 20:30:43 +0000 (21:30 +0100)]
documentation: gnutls does not support password-protected privkeys

already mentioned in man page and sample config file, but for
completeness also document it in doc/SSL.txt.

12 years agoMac OS X: update texts for Mac OS X
Alexander Barton [Tue, 6 Jan 2009 16:40:25 +0000 (17:40 +0100)]
Mac OS X: update texts for Mac OS X

12 years agoXcode: build ngIRCd with IPv6 support on Mac OS X
Alexander Barton [Tue, 6 Jan 2009 16:39:11 +0000 (17:39 +0100)]
Xcode: build ngIRCd with IPv6 support on Mac OS X

12 years agoXcode: get release number dynamically; new make target "xcode-clean".
Alexander Barton [Tue, 6 Jan 2009 15:01:52 +0000 (16:01 +0100)]
Xcode: get release number dynamically; new make target "xcode-clean".

- make target "xcode" now detects the release number stored in the file and passes it to Xcode.
- new make target "xcode-clean" which removes all files generated by
  "make xcode" and removes the Xcode build directory.

12 years agoXcode: define TARGET_VENDOR and TARGET_OS
Alexander Barton [Tue, 6 Jan 2009 15:00:15 +0000 (16:00 +0100)]

12 years agoAdd new and missing files to Mac OS X Xcode project
Alexander Barton [Tue, 6 Jan 2009 14:09:39 +0000 (15:09 +0100)]
Add new and missing files to Mac OS X Xcode project

12 years agoRename Channel_Free() to Free_Channel(), it is a local function
Alexander Barton [Mon, 5 Jan 2009 12:53:33 +0000 (13:53 +0100)]
Rename Channel_Free() to Free_Channel(), it is a local function

12 years agoClean up channel allocation table on shutdown/restart.
Alexander Barton [Mon, 5 Jan 2009 11:58:37 +0000 (12:58 +0100)]
Clean up channel allocation table on shutdown/restart.

Silly bug: the condition of a while() loop in the Channel_Exit() function
used the wrong variable and therefore got never executed ...

This bug is in the code since the beginning (see commit bb19cfda in 2002);
shame on me!

12 years agoAdd Channel_Free().
Florian Westphal [Sun, 4 Jan 2009 21:50:49 +0000 (22:50 +0100)]
Add Channel_Free().

Central function to free a channel structure and all its resources
(invite/ban lists, topic, ...).

12 years agoClean up (reformat and comment) Delete_Channel() function.
Alexander Barton [Sun, 4 Jan 2009 14:25:07 +0000 (15:25 +0100)]
Clean up (reformat and comment) Delete_Channel() function.

12 years agoFree topic array on channel deletion.
Alexander Barton [Sun, 4 Jan 2009 14:22:32 +0000 (15:22 +0100)]
Free topic array on channel deletion.

The topic array in the CHANNEL structure must be free()'d before the
channel itself becomes deleted.

12 years agoFix spelling in some documents.
Alexander Barton [Thu, 1 Jan 2009 16:56:42 +0000 (17:56 +0100)]
Fix spelling in some documents.

12 years agoAllow pre-defined server local channels ("&").
Alexander Barton [Tue, 30 Dec 2008 18:23:03 +0000 (19:23 +0100)]
Allow pre-defined server local channels ("&").

12 years agoSpell check and enhance ngIRCd manual pages.
Alexander Barton [Tue, 30 Dec 2008 18:20:09 +0000 (19:20 +0100)]
Spell check and enhance ngIRCd manual pages.

12 years agoman ngircd.conf: line break missing before the SSLConnect description
Florian Westphal [Mon, 29 Dec 2008 22:34:20 +0000 (23:34 +0100)]
man ngircd.conf: line break missing before the SSLConnect description

reported by Christoph Biedl.

12 years agodefines.h: remove MAX_LISTEN_PORTS, MAX_SERVICES
Florian Westphal [Sat, 27 Dec 2008 22:50:32 +0000 (23:50 +0100)]

_SERVICES was never used; _LISTEN_PORTS is a leftover from
commit 51ccb5928ad1453b0593fedd934298384d09e619
('internal changes needed for future ssl support').

12 years agoRemove limit on max number of predefined channels.
Florian Westphal [Mon, 24 Nov 2008 21:59:10 +0000 (22:59 +0100)]
Remove limit on max number of predefined channels.

This resolves Bugzilla Bug 68 ('Too many pre-defined channels configured.')

12 years agochannel.c: constify a few function arguments.
Florian Westphal [Sat, 22 Nov 2008 23:39:32 +0000 (00:39 +0100)]
channel.c: constify a few function arguments.

12 years agouse %ld as format specifier for posix data types
Florian Westphal [Wed, 17 Dec 2008 22:27:25 +0000 (23:27 +0100)]
use %ld as format specifier for posix data types

in the same vein as the earlier commit:
cast posix data types (pid_t, ...) to long and use
%ld as format specifier. This will avoid problems
when sizeof(int) != sizeof(type).

We could also cast to int, but this might truncate the value.

12 years agongIRCd release 13 rel-13
Alexander Barton [Thu, 25 Dec 2008 22:18:29 +0000 (23:18 +0100)]
ngIRCd release 13

12 years agodon't print pid_t type with %ld format specifier
Florian Westphal [Wed, 17 Dec 2008 21:55:20 +0000 (22:55 +0100)]
don't print pid_t type with %ld format specifier

Reported by Christoph Biedl:
ngircd[21581]: Running as user irc(39), group irc(39), with PID 140733193409613.

cast pid_t to long to avoid this.
While we are there, cast uid_t and gid_t, too.

12 years agoUpdate the date ("Dec 2008") of the manual pages.
Alexander Barton [Fri, 5 Dec 2008 23:20:59 +0000 (00:20 +0100)]
Update the date ("Dec 2008") of the manual pages.

12 years agodoc/Platforms.txt: added x86_64/unknown/linux-gnu
Alexander Barton [Fri, 5 Dec 2008 21:35:23 +0000 (22:35 +0100)]
doc/Platforms.txt: added x86_64/unknown/linux-gnu

12 years agodoc/Platforms.txt: update list of tested platforms.
Alexander Barton [Fri, 5 Dec 2008 17:11:50 +0000 (18:11 +0100)]
doc/Platforms.txt: update list of tested platforms.

12 years agodoc/SSL.txt: enhance documentation.
Alexander Barton [Thu, 4 Dec 2008 12:20:38 +0000 (13:20 +0100)]
doc/SSL.txt: enhance documentation.

12 years agodoc/Services.txt: explain which IRC Services versions are compatible
Alexander Barton [Thu, 4 Dec 2008 10:14:26 +0000 (11:14 +0100)]
doc/Services.txt: explain which IRC Services versions are compatible

12 years agoTestsuite return correct exit code.
Alexander Barton [Wed, 3 Dec 2008 15:49:55 +0000 (16:49 +0100)]
Testsuite return correct exit code.

src/testsuite/ returns 0 when no errors occurred and the
daemon has been startet and 1 on errors. Always returning 0 is wrong ...

12 years agoMake testsuite ( work on OpenSolaris (i386/pc/solaris2.11).
Alexander Barton [Wed, 3 Dec 2008 15:49:17 +0000 (16:49 +0100)]
Make testsuite ( work on OpenSolaris (i386/pc/solaris2.11).

12 years agodoc/Services.txt: document using ngIRCd with IRC Services.
Alexander Barton [Tue, 2 Dec 2008 14:41:57 +0000 (15:41 +0100)]
doc/Services.txt: document using ngIRCd with IRC Services.

12 years agosample-ngircd.conf: remove now unused CVS "$Id$"
Alexander Barton [Sat, 22 Nov 2008 13:47:01 +0000 (14:47 +0100)]
sample-ngircd.conf: remove now unused CVS "$Id$"

12 years agongIRCd release 13~rc1 rel-13-rc1
Alexander Barton [Fri, 21 Nov 2008 21:08:23 +0000 (22:08 +0100)]
ngIRCd release 13~rc1

12 years agoFix double minus signs in manual pages
Alexander Barton [Fri, 21 Nov 2008 20:31:29 +0000 (21:31 +0100)]
Fix double minus signs in manual pages

This patch fixes the following lintian(1) warning: "Manual page seems
to contain a hyphen where a minus sign was intended. '-' chars are
interpreted as hyphens (U+2010) by groff, not as minus signs (U+002D).
Since options to programs use minus signs (U+002D), this means for
example in UTF-8 locales that you cannot cut&paste options, nor search
for them easily. '-' must be escaped ('\-') to be interpreted as minus."

12 years agoDebian package ("make deb"): fix some lintian(1) warnings
Alexander Barton [Fri, 21 Nov 2008 20:27:23 +0000 (21:27 +0100)]
Debian package ("make deb"): fix some lintian(1) warnings

12 years agoChange formatting of some log messages
Alexander Barton [Thu, 20 Nov 2008 22:50:26 +0000 (23:50 +0100)]
Change formatting of some log messages

- Fix formatting of some log messages, mostly punctuation.
- cb_Connect_to_Server(): don't use string concatenation, because it
  is not supported by pre-ANSI C compilers ...