8 years agoMake the maximum /list reply length a configurable limit.
Brett Smith [Thu, 25 Oct 2012 18:46:29 +0000 (14:46 -0400)]
Make the maximum /list reply length a configurable limit.

8 years agoUpdate NEWS and ChangeLog files
Alexander Barton [Wed, 24 Oct 2012 20:03:56 +0000 (22:03 +0200)]
Update NEWS and ChangeLog files

8 years agoAllow remote servers and IRC Ops to change channel topics
Alexander Barton [Fri, 19 Oct 2012 17:45:44 +0000 (19:45 +0200)]
Allow remote servers and IRC Ops to change channel topics

Remote servers are always allowed to change all channel topics,
and IRC Operators are allowed to change all channel topics if the
configuration option "OperCanUseMode" is enabled.

Bug introduced by commit 7b01bb8 and reported by DNS777.

8 years agoIncreased maximum number of possible user and channel modes
DNS [Wed, 10 Oct 2012 23:53:20 +0000 (01:53 +0200)]
Increased maximum number of possible user and channel modes

Currntly ngIRCd supports 13 user and 15 channel modes, because there
have been quite a few additions since our last release. But our data
structures can only hold 15 user and -- even worse! -- only 9 channel
modes! So enlarge the buffers to 20 bytes (actually 21 including NULL)
to allow storing of all mode characters and to have some space left
for more modes to come ...

(cherry picked from commit 8996d777621d88d4bcc439ab4792b2814920687f)

8 years agoUpdate error messages for user mode +b and channel Mode +M.
DNS777 [Fri, 19 Oct 2012 16:37:33 +0000 (18:37 +0200)]
Update error messages for user mode +b and channel Mode +M.

Replaced error message for channel mode +M with ERR_NEEDREGGEDNICK_MSG
(used by Bahamut, inspircd, ircu & Unreal too) and using numeric 477
and the msg simliar like inspircd.

Replaced the error message ERR_CANNOTSENDTONICK_MSG for user mode +b
with ERR_NONONREG_MSG and using numeric 486, similar like unrealircd.

(cherry picked from commit 55a61ab17f63a9e757b7c7598c31b98ce5a132e8
and commit 3737d9ab7da1ea0485cefc07c65dc5308bf0db02)

8 years agoTest suite: add more checks to whois-test.e
Alexander Barton [Mon, 15 Oct 2012 19:39:08 +0000 (21:39 +0200)]
Test suite: add more checks to whois-test.e

8 years agoAdd "i586/pc/haiku" to doc/Platforms.txt
Alexander Barton [Thu, 11 Oct 2012 15:05:21 +0000 (15:05 +0000)]
Add "i586/pc/haiku" to doc/Platforms.txt

8 years agoDisable UID/GID checks on "single user OS"
Alexander Barton [Thu, 11 Oct 2012 14:54:13 +0000 (14:54 +0000)]
Disable UID/GID checks on "single user OS"

Don't abort on "single user operating systems" that don't know more than
one user account and therefore can't change user and group IDs.

Currently, the only such system supported by ngIRCd is Haiku, a BeOS

8 years agoSearch gethostbyname() in libbind and libnetwork
Alexander Barton [Thu, 11 Oct 2012 14:50:45 +0000 (14:50 +0000)]
Search gethostbyname() in libbind and libnetwork

This is required for Haiku (BeOS clone) at least.

8 years agoUpdate manual pages
Alexander Barton [Tue, 9 Oct 2012 11:13:01 +0000 (13:13 +0200)]
Update manual pages

Among other little things, bring project description in line with website.

8 years agoTest suite: add test for user mode "b"
Alexander Barton [Mon, 8 Oct 2012 10:15:34 +0000 (12:15 +0200)]
Test suite: add test for user mode "b"

8 years agoImplement user mode "b": block messages
DNS777 [Mon, 8 Oct 2012 10:11:04 +0000 (12:11 +0200)]
Implement user mode "b": block messages

When a user has set mode "b", all private messages and notices to this
user are blocked if they don't originate from a registered user, an IRC Op,
server or service. The originator gets an error numeric sent back in this
case, ERR_CANNOTSENDTONICK_MSG(976), which is/was(?) used by KineIRCd, too.

This closes bug #144.

8 years agoFix ERR_CANNOTSENDTOCHAN_MSG message
Alexander Barton [Sun, 7 Oct 2012 13:11:05 +0000 (15:11 +0200)]

This error message is not only used if one can not send to a channel
because it is moderated, but for _all_ reasons when a message can not
be delivered (moderated, banned, no external messages, ...), so strip
the "(+m) -- Moderated" part of the error message again.

Bug introduced by commit 9a82304a.

8 years agoShorten filenames of Anope protocol module patchfiles
Alexander Barton [Sun, 7 Oct 2012 10:06:11 +0000 (12:06 +0200)]
Shorten filenames of Anope protocol module patchfiles

Filenames have been too long and couldn't be stored in all tar
archive formats ...

8 years agoWHOIS: show RPL_WHOISHOST_MSG to all IRC Ops in the network
Alexander Barton [Sat, 6 Oct 2012 22:05:25 +0000 (00:05 +0200)]
WHOIS: show RPL_WHOISHOST_MSG to all IRC Ops in the network

Not only show RPL_WHOISHOST_MSG to local IRC opreators, but show
it to all IRC operators in the network. And don't show it to anybody
if the "more privacy" configuration option is enabled.

This closes bug #134.

8 years agoTest suite: make expect scripts more verbose testsuite-verbose
Alexander Barton [Mon, 24 Sep 2012 21:05:24 +0000 (23:05 +0200)]
Test suite: make expect scripts more verbose

Now transforms each expect script it executes using sed(1)
and inserts a 'puts -nonewline stderr "."' in front of each "expect"

8 years agoTest suite: remove indentation of messages
Alexander Barton [Mon, 24 Sep 2012 20:25:58 +0000 (22:25 +0200)]
Test suite: remove indentation of messages

8 years agoMerge branch 'bug141-ModesQq'
Alexander Barton [Sat, 6 Oct 2012 20:37:57 +0000 (22:37 +0200)]
Merge branch 'bug141-ModesQq'

This closes bug #141.

* bug141-ModesQq:
  KICK-protect IRC services
  Implement channel mode "Q" and user mode "q"


8 years agoShow active user modes in WHOIS reply
DNS777 [Sat, 6 Oct 2012 19:56:59 +0000 (21:56 +0200)]
Show active user modes in WHOIS reply

Implement numeric RPL_WHOISMODES_MSG(379) and show user modes in the
reply of the WHOIS command for the user himself or, if MorePrivacy
isn't set, for request initiated by an IRC operator.

Numeric 379 is used by Unreal and InspIRCd for this purpose, too.

Closes bug #129.

8 years agoImplement channel mode 'V' (invite disallow)
DNS777 [Sat, 6 Oct 2012 18:49:35 +0000 (20:49 +0200)]
Implement channel mode 'V' (invite disallow)

If the new channel mode "V" is set, the INVITE command becomes invalid
and all clients get the new ERR_NOINVITE_MSG(518) reply.

Unreal and InspIRCd uses this mode, too.

This closes bug #143.

8 years agoAllow channel admins to "de-admin" channel members
DNS777 [Sat, 6 Oct 2012 17:52:00 +0000 (19:52 +0200)]
Allow channel admins to "de-admin" channel members

This patch fixes unsetting of channel user mode "+a" (channel admin)
and adds a better error message: without this patch, a channel admin is
unable to unset this mode.

This closes bug #142.

8 years agoKICK-protect IRC services bug141-ModesQq
Alexander Barton [Sat, 6 Oct 2012 17:23:05 +0000 (19:23 +0200)]
KICK-protect IRC services

8 years agoMerge branch 'bug109-CHARCONV'
Alexander Barton [Sat, 6 Oct 2012 16:25:43 +0000 (18:25 +0200)]
Merge branch 'bug109-CHARCONV'

This closes bug #109.

* bug109-CHARCONV:
  Debian: require "telnet" or "telnet-ssl" for building
  Debian ngircd-full[-dbg]: enable CHARCONV
  Add "CHARCONV" to "feature string" when enabled
  Implement new IRC+ "CHARCONV" command
  Added new configure option "--with-iconv"


8 years agoImplement channel mode "Q" and user mode "q"
Alexander Barton [Sat, 6 Oct 2012 16:13:01 +0000 (18:13 +0200)]
Implement channel mode "Q" and user mode "q"

Both modes protect users from channel kicks: only IRC operators and
servers can kick users having mode "q" or in channels with mode "Q".

Original patch by DNS777 <>, thanks!

This closes bug #141.

8 years agoDefine HAVE_SETSID for Mac OS X Xcode builds
Alexander Barton [Sat, 6 Oct 2012 15:58:44 +0000 (17:58 +0200)]
Define HAVE_SETSID for Mac OS X Xcode builds

Alexander Barton [Sat, 6 Oct 2012 15:21:32 +0000 (17:21 +0200)]

Thanks to DNS for pointing this out, see bug #126!

8 years agoDebian: require "telnet" or "telnet-ssl" for building bug109-CHARCONV
Alexander Barton [Sat, 6 Oct 2012 14:36:34 +0000 (16:36 +0200)]
Debian: require "telnet" or "telnet-ssl" for building

8 years agoDebian ngircd-full[-dbg]: enable CHARCONV
Alexander Barton [Sat, 6 Oct 2012 14:36:07 +0000 (16:36 +0200)]
Debian ngircd-full[-dbg]: enable CHARCONV

8 years don't use "make -C", it isn't portable
Alexander Barton [Wed, 26 Sep 2012 23:11:01 +0000 (01:11 +0200)] don't use "make -C", it isn't portable

8 years agoTest suite: don't use "mkdir -p"
Alexander Barton [Wed, 26 Sep 2012 22:56:03 +0000 (00:56 +0200)]
Test suite: don't use "mkdir -p"

"mkdir -p" is not supported on all platforms.
Tested with Apple A/UX 3.1.x.

8 years agoERR_CHANNELISFULL_MSG: better wording
Federico G. Schwindt [Wed, 26 Sep 2012 12:26:50 +0000 (13:26 +0100)]

(cherry picked from commit 0fcfa7e00fa8e098dd3724c7188c88ac82a52881)

8 years agoFix to work on Apple A/UX again
Alexander Barton [Wed, 26 Sep 2012 22:19:31 +0000 (00:19 +0200)]
Fix to work on Apple A/UX again

8 years agoSend RPL_REHASHING if rehash was accepted
Federico G. Schwindt [Wed, 26 Sep 2012 12:13:10 +0000 (13:13 +0100)]
Send RPL_REHASHING if rehash was accepted

(cherry picked from commit f1b171a09cd076f743a7fff221fa7aa752abb374)

8 years agoChange variable name "SSLDHFile" to "DHFile" in log messages
Federico G. Schwindt [Tue, 18 Sep 2012 23:52:50 +0000 (00:52 +0100)]
Change variable name "SSLDHFile" to "DHFile" in log messages

(cherry picked from commit d96db0a2e56d310177edb45d0a8b164a37992ab1)

8 years agoMove ConnSSL_InitLibrary() "dummy" from header into C file
Federico G. Schwindt [Tue, 18 Sep 2012 23:34:29 +0000 (00:34 +0100)]
Move ConnSSL_InitLibrary() "dummy" from header into C file

(cherry picked from commit 5fd88c81a70d0c9e627f08522e57d251586288eb)

8 years agoNJOIN: correctly reset channel level flags
Alexander Barton [Wed, 26 Sep 2012 21:51:05 +0000 (23:51 +0200)]
NJOIN: correctly reset channel level flags

This fixes commit 7b01bb83.
Bug reported by DNS777 <>, thanks!

8 years agoSimplify check for valid user names in IRC_USER().
Alexander Barton [Wed, 26 Sep 2012 21:28:13 +0000 (23:28 +0200)]
Simplify check for valid user names in IRC_USER().

Patches from Federico G. Schwindt, thanks!

(cherry picked from commit a44b7126227ba1118ec02b399e31b08102af5e8c
and 6fbe9583753b2620da275676cde46a89cb4d06c2)

8 years agoAllow user mode +x only when "CloakHostModeX" is set
Alexander Barton [Wed, 26 Sep 2012 20:52:06 +0000 (22:52 +0200)]
Allow user mode +x only when "CloakHostModeX" is set

Allow users to "cloak" their hostname only when the configuration
variable "CloakHostModeX" (introduced in 19.2) is set. Otherwise, only
IRC opertators, other servers, and services are allowed to set mode +x.

This prevents regular users from changing their hostmask to the name
of the IRC server itself, which confused quite a few people ;-)

This fixes bug #133.

8 years agoNew configuration option "OperChanPAutoOp"
DNS777 [Tue, 25 Sep 2012 11:08:39 +0000 (13:08 +0200)]
New configuration option "OperChanPAutoOp"

If disabled, IRC operators don't become channel operators in persistent
channels when joining. Enabled by default, which has been the behavior
of ngIRCd up to this patch.

Closes bug #135.

(Cosmetic fixes by Alex.)

8 years agoAllow opers to see secret (+s) channels in LIST command
DNS777 [Tue, 25 Sep 2012 10:55:07 +0000 (12:55 +0200)]
Allow opers to see secret (+s) channels in LIST command

As long as 'MorePrivacy' isn't enabled in the configuration file, local
IRC operators can see secret (+s) channels when using the LIST command.

Closes bug #136.

8 years agoconfigure: only use AM_PROG_AR when available
Alexander Barton [Mon, 24 Sep 2012 18:56:24 +0000 (20:56 +0200)]
configure: only use AM_PROG_AR when available

This fixes commit 78d189fb on systems with older automake ...

8 years agoRemove all geneerated on "make maintainer-clean"
Alexander Barton [Mon, 24 Sep 2012 18:45:37 +0000 (20:45 +0200)]
Remove all geneerated on "make maintainer-clean"

8 years agoRename to
Alexander Barton [Mon, 24 Sep 2012 18:40:31 +0000 (20:40 +0200)]
Rename to

This fixes

  automake: warning: autoconf input should be named '',
  not ''

when running the script.

8 years use AM_PROG_AR to check ar(1) command
Alexander Barton [Mon, 24 Sep 2012 18:39:06 +0000 (20:39 +0200)] use AM_PROG_AR to check ar(1) command

This fixes

  automake-1.12/am/ warning: 'libngipaddr.a':
   linking libraries using a non-POSIX .../automake-1.12/am/
   archiver requires 'AM_PROG_AR' in ''
   src/ipaddr/ while processing library 'libngipaddr.a'

and similar warnings of automake.

8 years agoMerge branch 'automake-am11-am12'
Alexander Barton [Mon, 24 Sep 2012 18:28:02 +0000 (20:28 +0200)]
Merge branch 'automake-am11-am12'

* automake-am11-am12: detect automake version format a.b.c and a.b don't require GIT tree to detect version string
  Include .mailmap file in distribution archives
  Include all build-system files into distribution archives
  Change build system to support new and old GNU automake

8 years detect automake version format a.b.c and a.b automake-am11-am12
Alexander Barton [Mon, 24 Sep 2012 16:01:47 +0000 (18:01 +0200)] detect automake version format a.b.c and a.b

8 years don't require GIT tree to detect version string
Alexander Barton [Mon, 24 Sep 2012 16:00:36 +0000 (18:00 +0200)] don't require GIT tree to detect version string

8 years agoInclude .mailmap file in distribution archives
Alexander Barton [Mon, 24 Sep 2012 15:50:32 +0000 (17:50 +0200)]
Include .mailmap file in distribution archives

8 years agoINSTALL: update GNU automake/autoconf requirements
Alexander Barton [Mon, 24 Sep 2012 15:46:22 +0000 (17:46 +0200)]
INSTALL: update GNU automake/autoconf requirements

8 years agoautomake: don't use INCLUDES, it's AM_CPPFLAGS nowadays
Alexander Barton [Mon, 24 Sep 2012 15:45:15 +0000 (17:45 +0200)]
automake: don't use INCLUDES, it's AM_CPPFLAGS nowadays

8 years agoautomake: enable colored test output, if available
Alexander Barton [Mon, 24 Sep 2012 15:43:02 +0000 (17:43 +0200)]
automake: enable colored test output, if available

The "color-tests" option can't be checked for, but is available starting
with automake 1.11 which introduced AM_SILENT_RULES -- so we check this ...

8 years agoAdd doc/Contributing.txt to distribution archive
Alexander Barton [Mon, 24 Sep 2012 15:40:33 +0000 (17:40 +0200)]
Add doc/Contributing.txt to distribution archive

8 years agoInclude all build-system files into distribution archives
Alexander Barton [Mon, 24 Sep 2012 12:34:16 +0000 (14:34 +0200)]
Include all build-system files into distribution archives

8 years agoLoose GNU autoconf / automake requirements a bit
Alexander Barton [Mon, 24 Sep 2012 08:22:21 +0000 (10:22 +0200)]
Loose GNU autoconf / automake requirements a bit

Now ngIRCd requires at least GNU autoconf 2.61 and automake 1.10, the
requirements of commit 67e882d4 have been too restrictive:

             19.2      67e882d4  now
  ---------- --------- --------- ---------
  autoconf   >=2.50    >=2.67    >=2.61
  automake   >=1.6     >=1.11    >=1.10

The tools required now are supported by Debian GNU/Linux 4.0 "Etch",
RedHat Enterprise Linux 5, and Mac OS X 10.6.x for example.

I read the changelogs of autoconf and automake, and I think ther's nothing
that prevents it from working with these older versions; and we don't want
to force users to upgrade without real benefits.

Please note: the recommended versions are still autoconf 1.11.x and the
most recent autoconf release that works with automake 1.11.x!

8 years agoMerge branch 'bug92-xop'
Alexander Barton [Sun, 23 Sep 2012 17:58:50 +0000 (19:58 +0200)]
Merge branch 'bug92-xop'

By Alexander Barton (5) and Sebastian Köhler (2)

* bug92-xop:
  Fix NAMES/WHO response when client has multi-prefix
  Fix prefix of "halfop" when "multi-prefix" is active
  Clean up doc/.gitignore
  doc/Modes.txt: add version number to new channel modes
  Fix some "whitespace glitches"
  Tests and documentation for xop
  Implemented xop support

Conflicts (because of "multi-prefix fix"):

This fixes bug #92 "ngircd does not support XOP usermodes".

8 years agoFix NAMES/WHO response when client has multi-prefix bug92-xop
Alexander Barton [Sun, 23 Sep 2012 17:37:06 +0000 (19:37 +0200)]
Fix NAMES/WHO response when client has multi-prefix

This has been fixed by commit 16f94546 "Fix NAMES response when
client has multi-prefix" in the master branch, fix it in this patch
series, too.

8 years agoFix prefix of "halfop" when "multi-prefix" is active
Alexander Barton [Sun, 23 Sep 2012 17:23:23 +0000 (19:23 +0200)]
Fix prefix of "halfop" when "multi-prefix" is active

8 years agoChange build system to support new and old GNU automake
Alexander Barton [Sun, 23 Sep 2012 15:55:48 +0000 (17:55 +0200)]
Change build system to support new and old GNU automake

Starting with GNU automake 1.12, the "de-ANSI-fication support" has been
removed, which ngIRCd used to enable building itself on very old systems.

Now the problem is, that using automake >= 1.12 isn't working because of
the now unsupported M4 macros. Therefore the solution that this patch
implements is to dynamically generate the automake input files with our
own ./ script: => =>

This is quite an ugly approach, but it works and enables us to:

  1. use current automake >= 1.12 for development and "private builds",
  2. still build distribution archives using automake 1.11.x that have
     "de-ANSI-fication support" enabled in the generated Makefile's.

And if you are using Makefile's generated with a automake version newer
than 1.11.x (without "de-ANSI-fication support"), the ./configure script
warns you not to use this generated build system to generate distribution

Drawback of this patch: you MUST use our script, you can't call
the autoconf/automake commands directly any more; but autoreconf should
still work ...

8 years agoClean up doc/.gitignore
Alexander Barton [Sun, 23 Sep 2012 15:52:53 +0000 (17:52 +0200)]
Clean up doc/.gitignore

8 years agodoc/Modes.txt: add version number to new channel modes
Alexander Barton [Sun, 23 Sep 2012 15:52:26 +0000 (17:52 +0200)]
doc/Modes.txt: add version number to new channel modes

8 years agoFree all listen ports on initialization
Alexander Barton [Fri, 21 Sep 2012 08:41:03 +0000 (10:41 +0200)]
Free all listen ports on initialization

Now you can reconfigure listen ports and reload the server configuration
on runtime. Without this patch, no ports could be removed.

8 years agoInitialize SSL when needed only, and disable SSL on errors
Alexander Barton [Fri, 21 Sep 2012 08:36:09 +0000 (10:36 +0200)]
Initialize SSL when needed only, and disable SSL on errors

With this patch, the SSL subsystem will only be initialized if at least
one SSL ports is configured; so you won't get "SSL initialization failed"
messages if you didn't configured it at all.

And if SSL initialization fails, no SSL listen ports will be enabled
later which never could establish a working SSL connection at all ...

8 years agoAdd "CHARCONV" to "feature string" when enabled
Alexander Barton [Sun, 16 Sep 2012 23:00:05 +0000 (01:00 +0200)]
Add "CHARCONV" to "feature string" when enabled

8 years agoImplement new IRC+ "CHARCONV" command
Alexander Barton [Sun, 16 Sep 2012 22:36:10 +0000 (00:36 +0200)]
Implement new IRC+ "CHARCONV" command

See bug 109 and doc/Protocol.txt for details and documentation.

8 years agoAdded new configure option "--with-iconv"
Alexander Barton [Thu, 24 Mar 2011 16:09:44 +0000 (17:09 +0100)]
Added new configure option "--with-iconv"

The iconv library should be used for implementing the new CHARCONV
IRC command discussed in bug 109.

And because CHARCONV will be an IRC+ feature, we only test for libiconv
if IRC+ is enabled as well.

8 years agoSort "feature string" alphabetically
Alexander Barton [Sun, 16 Sep 2012 22:55:30 +0000 (00:55 +0200)]
Sort "feature string" alphabetically

8 years agoInclude CAP command even when using "strict RFC mode"
Alexander Barton [Sun, 16 Sep 2012 12:08:52 +0000 (14:08 +0200)]
Include CAP command even when using "strict RFC mode"

8 years agoMerge branch 'autoconf-update'
Alexander Barton [Sun, 16 Sep 2012 11:05:23 +0000 (13:05 +0200)]
Merge branch 'autoconf-update'

Update GNU autoconf and automake infrastructure.
Tested on modern systems as well as Apple A/UX :-)

* autoconf-update:
  AUTOMAKE_OPTIONS: fix ansi2knr option, include path
  Make our own targets "silent", if enabled use AC_CHECK_{FUNCS|HEADERS}_ONCE
  Updated config.{guess|sub} to version 2012-08-14
  Make more verbose when VERBOSE=1 is set use AC_SEARCH_LIBS (not AC_CHECK_LIB) use AS_HELP_STRING macro use AC_CANONICAL_HOST (not AC_CANONICAL_TARGET) inttypes.h is an optional header file
  Use HAVE_SETSID #define when testing for setsid()
  Don't include <stdint.h>, it is included by "portab.h"
  Don't check type.h availability, it is required Use AC_CONFIG_FILES macro Don't use AC_C_PROTOTYPES Update checks for required and optional features require autoconf 2.67 and automake 1.11 sort some lists (templates, output, ...)

8 years agoAUTOMAKE_OPTIONS: fix ansi2knr option, include path autoconf-update
Alexander Barton [Sun, 16 Sep 2012 10:43:12 +0000 (12:43 +0200)]
AUTOMAKE_OPTIONS: fix ansi2knr option, include path

Set correct relative path to ansi2knr.c in AUTOMAKE_OPTIONS, so that
ansi2knr.{1|c} is only included once in the distribution archive.

8 years agoDon't use AC_FUNC_MALLOC and AC_FUNC_REALLOC
Alexander Barton [Sat, 15 Sep 2012 18:26:59 +0000 (20:26 +0200)]

We don't expect the GNU'ish behaviour of of malloc() and realloc() and never
implemented the replacement functions rpl_malloc()/rpl_realloc() -- so these
test result in linking failues on systems that don't have a GNU'ish malloc()
and realloc() even though we don't require it!

Introduced by commit 47ad9afc.

8 years agoMake our own targets "silent", if enabled
Alexander Barton [Sat, 15 Sep 2012 17:15:16 +0000 (19:15 +0200)]
Make our own targets "silent", if enabled

8 years agoAllow limited punctuation in usernames, for better PAM integration.
Brett Smith [Fri, 14 Sep 2012 15:56:38 +0000 (11:56 -0400)]
Allow limited punctuation in usernames, for better PAM integration.

Alexander Barton [Thu, 13 Sep 2012 16:48:25 +0000 (18:48 +0200)] use AC_CHECK_{FUNCS|HEADERS}_ONCE

8 years agoUpdated config.{guess|sub} to version 2012-08-14
Alexander Barton [Thu, 13 Sep 2012 16:32:28 +0000 (18:32 +0200)]
Updated config.{guess|sub} to version 2012-08-14

8 years agoMake more verbose when VERBOSE=1 is set
Alexander Barton [Thu, 13 Sep 2012 16:25:50 +0000 (18:25 +0200)]
Make more verbose when VERBOSE=1 is set

8 years use AC_SEARCH_LIBS (not AC_CHECK_LIB)
Alexander Barton [Thu, 13 Sep 2012 14:40:04 +0000 (16:40 +0200)] use AC_SEARCH_LIBS (not AC_CHECK_LIB)

Use the AC_SEARCH_LIBS macro to test for "sometimes but not always"
required libraries, not AC_CHECK_LIB.

8 years use AS_HELP_STRING macro
Alexander Barton [Wed, 12 Sep 2012 22:25:09 +0000 (00:25 +0200)] use AS_HELP_STRING macro

Alexander Barton [Wed, 12 Sep 2012 22:06:08 +0000 (00:06 +0200)] use AC_CANONICAL_HOST (not AC_CANONICAL_TARGET)

See the autoconf manual for details:

8 years inttypes.h is an optional header file
Alexander Barton [Wed, 12 Sep 2012 14:01:11 +0000 (16:01 +0200)] inttypes.h is an optional header file

8 years agoMerge pull request #2 from briancollins/master
Alexander Barton [Tue, 11 Sep 2012 18:29:14 +0000 (11:29 -0700)]
Merge pull request #2 from briancollins/master

Fix IRC_Send_NAMES not sending correct prefix for certain clients.

8 years agoCorrectly re-initialize signal handlers on RESTART
Alexander Barton [Tue, 11 Sep 2012 13:44:31 +0000 (15:44 +0200)]
Correctly re-initialize signal handlers on RESTART

This fixes part 2 of bug #127 :-)

8 years agoUse HAVE_SETSID #define when testing for setsid()
Alexander Barton [Tue, 11 Sep 2012 12:38:19 +0000 (14:38 +0200)]
Use HAVE_SETSID #define when testing for setsid()

8 years agoDon't include <stdint.h>, it is included by "portab.h"
Alexander Barton [Tue, 11 Sep 2012 12:37:31 +0000 (14:37 +0200)]
Don't include <stdint.h>, it is included by "portab.h"

8 years agoDon't check type.h availability, it is required
Alexander Barton [Tue, 11 Sep 2012 12:36:34 +0000 (14:36 +0200)]
Don't check type.h availability, it is required

8 years Use AC_CONFIG_FILES macro
Alexander Barton [Tue, 11 Sep 2012 12:36:02 +0000 (14:36 +0200)] Use AC_CONFIG_FILES macro

8 years Don't use AC_C_PROTOTYPES
Alexander Barton [Tue, 11 Sep 2012 12:34:30 +0000 (14:34 +0200)] Don't use AC_C_PROTOTYPES

Don't use AC_C_PROTOTYPES, AM_C_PROTOTYPES is already used.

8 years Update checks for required and optional features
Alexander Barton [Tue, 11 Sep 2012 12:32:17 +0000 (14:32 +0200)] Update checks for required and optional features

Update checks for required and optional header files, data types,
and functions.

8 years require autoconf 2.67 and automake 1.11
Alexander Barton [Tue, 11 Sep 2012 12:30:49 +0000 (14:30 +0200)] require autoconf 2.67 and automake 1.11

And use newer features such as bug reporting address and project URL.

8 years sort some lists (templates, output, ...)
Alexander Barton [Tue, 11 Sep 2012 12:13:17 +0000 (14:13 +0200)] sort some lists (templates, output, ...)

8 years agoNew_Connection(): mark "IsSSL" parameter as UNUSED
Alexander Barton [Tue, 11 Sep 2012 11:14:08 +0000 (13:14 +0200)]
New_Connection(): mark "IsSSL" parameter as UNUSED

This fixes the following warning message when building without SSL support:

 conn.c: In function "New_Connection":
 conn.c:1365: warning: unused parameter "IsSSL"

Introduced by commit 01b62202.

8 years agoFix some "whitespace glitches"
Alexander Barton [Tue, 11 Sep 2012 10:48:51 +0000 (12:48 +0200)]
Fix some "whitespace glitches"

Some have been introduced by commit 7b01bb83, some are older.

8 years agoMerge branch 'xop' of into bug92-xop
Alexander Barton [Tue, 11 Sep 2012 10:30:19 +0000 (12:30 +0200)]
Merge branch 'xop' of into bug92-xop

* 'xop' of
  Tests and documentation for xop
  Implemented xop support

Conflicts (because of merge of the 'cmode-M' branch):

8 years agoShow a warning on startup if config file is not a full path
Alexander Barton [Tue, 11 Sep 2012 09:40:47 +0000 (11:40 +0200)]
Show a warning on startup if config file is not a full path

ngIRCd is a long-running process and changes its working directory to "/" to
not block mounted filesystems and the like when running as daemon ("not in the
foreground"); therefore the path to the configuration file must be relative to
"/" (or the chroot() directory), which basically is "not relative", to ensure
that "kill -HUP" and the "REHASH" command work as expected later on.

This fixes parts of bug #127.

8 years agoCreate &SERVER channel after predefined channels
Alexander Barton [Mon, 10 Sep 2012 15:59:15 +0000 (17:59 +0200)]
Create &SERVER channel after predefined channels

This patch allows you to define &SERVER in a [Channel] block yourself
and to overwrite the built-in topic and channel modes.

Fixes bug #131.

8 years agoWHO #channel: don't limit list size
Alexander Barton [Mon, 10 Sep 2012 10:43:44 +0000 (12:43 +0200)]
WHO #channel: don't limit list size

It makes no sense to limit the list size when doing WHO for a channel
and not to return all the users in that channel, so I removed the check.
But if there are more than MAX_RPL_WHO(25) replies, the client requesting
the list will be "penalized" one second more (then 2 in total).

This fixes bug #125.

8 years agoDefine EV_SET() for kqueue() on systems that don't have it
Alexander Barton [Tue, 4 Sep 2012 21:28:32 +0000 (23:28 +0200)]
Define EV_SET() for kqueue() on systems that don't have it

Some systems, notably FreeBSD 4.x, do have the kqueue() function but
lack the definition of EV_SET() in their header files -- but don't
worry, we can #define it on our own ;-)

Definition taken from /usr/include/sys/event.h of FreeBSD 8.1.
Patch tested on FreeBSD 4.1 by Götz Hoffart. Thanks!

8 years agoFix contrib/ to list all files in EXTRA_DIST
Alexander Barton [Tue, 4 Sep 2012 20:48:47 +0000 (22:48 +0200)]
Fix contrib/ to list all files in EXTRA_DIST

8 years agoUpdate project description
Alexander Barton [Tue, 4 Sep 2012 11:09:27 +0000 (13:09 +0200)]
Update project description

8 years agoNew function Conn_StartLogin() to finish connection initialization
Alexander Barton [Wed, 29 Aug 2012 15:24:19 +0000 (17:24 +0200)]
New function Conn_StartLogin() to finish connection initialization

Conn_StartLogin() is called after the connection has been established and
fully innitialized, including the SSL handshake, for example.

Up to this patch, the "NoticeAuth" option broke the SSL handshake ...

8 years agoConvert CONN_ID and Conf_MaxConnections to "int" datatype
Alexander Barton [Wed, 29 Aug 2012 15:03:41 +0000 (17:03 +0200)]
Convert CONN_ID and Conf_MaxConnections to "int" datatype

We can't handle more connections than accept(2) can supply, and
accept(2) returns an "int" ...