]> arthur.barton.de Git - ngircd-alex.git/log
ngircd-alex.git
13 years agoMac OS X: update installer texts and add logo.
Alexander Barton [Thu, 14 Apr 2011 09:24:07 +0000 (11:24 +0200)]
Mac OS X: update installer texts and add logo.

13 years agoDoxygen'ify conf.c
Alexander Barton [Tue, 12 Apr 2011 21:15:29 +0000 (23:15 +0200)]
Doxygen'ify conf.c

13 years agoNew function Config_Error_Section(); and code cleanup
Alexander Barton [Tue, 12 Apr 2011 19:55:32 +0000 (21:55 +0200)]
New function Config_Error_Section(); and code cleanup

13 years agoAdd some type casts to random() and srandom() functions
Alexander Barton [Tue, 12 Apr 2011 19:23:14 +0000 (21:23 +0200)]
Add some type casts to random() and srandom() functions

This fixes two gcc warnings (on Mac OS X):
 "warning: implicit conversion shortens 64-bit value into a 32-bit value"

13 years agongircd: improve rng initialisation
Florian Westphal [Sun, 27 Mar 2011 20:48:01 +0000 (22:48 +0200)]
ngircd: improve rng initialisation

we do not need this for cryptographic purposes, but we can do better
than plain srandom(getpid()).

Also, keep in mind that rng state is inherited across fork(), so re-init
it in the child.

13 years agoMerge branch 'AuthPing'
Alexander Barton [Sun, 27 Mar 2011 18:58:18 +0000 (20:58 +0200)]
Merge branch 'AuthPing'

* AuthPing:
  Add documentation for "RequireAuthPing" configuration option
  New configuration option "RequireAuthPing": PING-PONG on login

13 years agoMerge branch 'NoticeAuth'
Alexander Barton [Sun, 27 Mar 2011 18:56:50 +0000 (20:56 +0200)]
Merge branch 'NoticeAuth'

* NoticeAuth:
  Add documentation for "NoticeAuth" configuration option
  Configuration: move "NoticeAuth" to GLOBAL section
  New configuration option "NoticeAuth": send NOTICE AUTH on connect

13 years agongircd.conf.5: Add variable type to "CloakHost" and "CloakUserToNick"
Alexander Barton [Sun, 27 Mar 2011 18:45:29 +0000 (20:45 +0200)]
ngircd.conf.5: Add variable type to "CloakHost" and "CloakUserToNick"

13 years agoXcode: don't list sample-ngircd.conf, use sample-ngircd.conf.tmpl
Alexander Barton [Sun, 27 Mar 2011 18:41:48 +0000 (20:41 +0200)]
Xcode: don't list sample-ngircd.conf, use sample-ngircd.conf.tmpl

13 years agoAdd documentation for "NoticeAuth" configuration option NoticeAuth
Alexander Barton [Sun, 27 Mar 2011 18:40:28 +0000 (20:40 +0200)]
Add documentation for "NoticeAuth" configuration option

13 years agoAdd documentation for "RequireAuthPing" configuration option AuthPing
Alexander Barton [Sun, 27 Mar 2011 18:34:44 +0000 (20:34 +0200)]
Add documentation for "RequireAuthPing" configuration option

13 years agoNew configuration option "RequireAuthPing": PING-PONG on login
Alexander Barton [Sun, 27 Mar 2011 17:33:48 +0000 (19:33 +0200)]
New configuration option "RequireAuthPing": PING-PONG on login

When enabled, this configuration option lets ngIRCd send a PING with an
numeric "token" to clients logging in; and it will not become registered
in the network until the client responds with the correct PONG.

This is used by QuakeNet for example (ircu/snircd), and looks like this:

  NICK nick
  :irc.example.net PING :1858979527
  USER user . . :real name
  PONG 1858979527
  :irc.example.net 001 nick :Welcome to the Internet Relay Network ...

13 years agoConfiguration: move "NoticeAuth" to GLOBAL section
Alexander Barton [Sat, 26 Mar 2011 16:11:44 +0000 (17:11 +0100)]
Configuration: move "NoticeAuth" to GLOBAL section

13 years agoNew configuration option "NoticeAuth": send NOTICE AUTH on connect
Alexander Barton [Fri, 25 Mar 2011 11:08:36 +0000 (12:08 +0100)]
New configuration option "NoticeAuth": send NOTICE AUTH on connect

When enabling "NoticeAuth" in the [Features] section, ngircd will send
"NOTICE AUTH" messages on client connect like e.g. snircd (QuakeNet) does.

13 years agoWarn when unknown variables are found in [Features] section
Alexander Barton [Fri, 25 Mar 2011 11:12:20 +0000 (12:12 +0100)]
Warn when unknown variables are found in [Features] section

13 years agoUpdate doc/GIT.txt
Alexander Barton [Fri, 25 Mar 2011 10:14:04 +0000 (11:14 +0100)]
Update doc/GIT.txt

13 years agoUpdate INSTALL text
Alexander Barton [Wed, 23 Mar 2011 00:08:49 +0000 (01:08 +0100)]
Update INSTALL text

13 years agoGenerate WALLOPS message on SQUIT from IRC operator
Alexander Barton [Mon, 21 Mar 2011 22:51:53 +0000 (23:51 +0100)]
Generate WALLOPS message on SQUIT from IRC operator

So SQUIT now behaves like CONNECT and DISCONNECT commands, when called
by an IRC operator (and not received from an other server).

13 years agoCommands received from other servers must have prefixes
Alexander Barton [Mon, 21 Mar 2011 09:46:09 +0000 (10:46 +0100)]
Commands received from other servers must have prefixes

Make sure that all commands received from other servers do have
valid prefixes.

Only exceptions are PING and ERROR commands that can occure without
prefixes when generated by the remote peer itself.

13 years agoAllow servers to send more commands in the first 10 secods
Alexander Barton [Mon, 21 Mar 2011 08:42:01 +0000 (09:42 +0100)]
Allow servers to send more commands in the first 10 secods

This helps to speed up server login and network synchronisation.

13 years agoIRC_CHANINFO(): Code cleanup
Alexander Barton [Sat, 19 Mar 2011 16:29:19 +0000 (17:29 +0100)]
IRC_CHANINFO(): Code cleanup

13 years agoHandle_GLOBAL(): don't use multi-line strings
Alexander Barton [Sat, 19 Mar 2011 16:28:38 +0000 (17:28 +0100)]
Handle_GLOBAL(): don't use multi-line strings

They aren't supported by elder C compilers ...

13 years agoMerge branches 'CloakUserHost', 'QuitOnHTTP' and 'bug72-WHOIS-List'
Alexander Barton [Sat, 19 Mar 2011 16:16:14 +0000 (17:16 +0100)]
Merge branches 'CloakUserHost', 'QuitOnHTTP' and 'bug72-WHOIS-List'

* CloakUserHost:
  Add a note not to use a percent sign ("%") in CloakHost variable
  Rename ClientHost to CloakHost, and ClientUserNick to CloakUserToNick
  Don't use "the.net" in sample-ngircd.conf, use "example.net"
  ngircd.conf.5: document "ClientHost" and "ClientUserNick"
  Move "ClientHost" and "ClientUserNick" to end of [Global] section
  ClientUserNick setting
  ClientHost setting

* QuitOnHTTP:
  Only "handle" HTTP commands on unregistered connections
  Don't use IRC_QUIT_HTTP() if STRICT_RFC is #define'd
  IRC_QUIT_HTTP(): enhance error message
  Move IRC_QUIT_HTTP() below IRC_QUIT()
  quit on HTTP commands: GET & POST

* bug72-WHOIS-List:
  Add "whois-test" to testsuite and distribution archive
  Add support for up to 3 targets in WHOIS queries.

13 years agoAdd a note not to use a percent sign ("%") in CloakHost variable CloakUserHost
Alexander Barton [Sat, 19 Mar 2011 16:02:39 +0000 (17:02 +0100)]
Add a note not to use a percent sign ("%") in CloakHost variable

The percent sign is reserved for future extensions, for example to
expand some variables like %H to a hash value of the real host name ...

Idea by kaFux in #ngircd.

13 years agoRename ClientHost to CloakHost, and ClientUserNick to CloakUserToNick
Alexander Barton [Sat, 19 Mar 2011 15:58:29 +0000 (16:58 +0100)]
Rename ClientHost to CloakHost, and ClientUserNick to CloakUserToNick

13 years agoAdd "whois-test" to testsuite and distribution archive bug72-WHOIS-List
Alexander Barton [Sat, 19 Mar 2011 13:52:07 +0000 (14:52 +0100)]
Add "whois-test" to testsuite and distribution archive

Test script proposed by Dana Dahlstrom, 2008-02-17.
See <https://arthur.barton.de/bugzilla/show_bug.cgi?id=72> ...

13 years agoAdd support for up to 3 targets in WHOIS queries.
Florian Westphal [Mon, 18 Feb 2008 14:24:01 +0000 (15:24 +0100)]
Add support for up to 3 targets in WHOIS queries.

also allow up to one wildcard query from local hosts.
Follows ircd 2.10 implementation rather than RFC 2812.
At most 10 entries are returned per wildcard expansion.

WHOIS test cases by Dana Dahlstrom.

13 years agoDoxygen: Remove header.inc.html and ngircd-doc.css from distribution
Alexander Barton [Sat, 19 Mar 2011 13:56:05 +0000 (14:56 +0100)]
Doxygen: Remove header.inc.html and ngircd-doc.css from distribution

13 years agongircd.conf.5: describe types of variables
Alexander Barton [Fri, 18 Mar 2011 10:15:48 +0000 (11:15 +0100)]
ngircd.conf.5: describe types of variables

Describe the possible types of variables in ngircd.conf:
booleans, text strings, integer numbers.

And add type information to each variable description.

13 years agoDon't use "the.net" in sample-ngircd.conf, use "example.net"
Alexander Barton [Fri, 18 Mar 2011 09:45:16 +0000 (10:45 +0100)]
Don't use "the.net" in sample-ngircd.conf, use "example.net"

"the.net" is an existing domain of the Texas Higher Education Network ...
See RFC 2606.

13 years agoOnly "handle" HTTP commands on unregistered connections QuitOnHTTP
Alexander Barton [Wed, 16 Mar 2011 23:03:10 +0000 (00:03 +0100)]
Only "handle" HTTP commands on unregistered connections

13 years agoDon't use IRC_QUIT_HTTP() if STRICT_RFC is #define'd
Alexander Barton [Wed, 16 Mar 2011 22:58:39 +0000 (23:58 +0100)]
Don't use IRC_QUIT_HTTP() if STRICT_RFC is #define'd

13 years agoIRC_QUIT_HTTP(): enhance error message
Alexander Barton [Wed, 16 Mar 2011 22:58:01 +0000 (23:58 +0100)]
IRC_QUIT_HTTP(): enhance error message

13 years agoMove IRC_QUIT_HTTP() below IRC_QUIT()
Alexander Barton [Wed, 16 Mar 2011 22:56:27 +0000 (23:56 +0100)]
Move IRC_QUIT_HTTP() below IRC_QUIT()

13 years agongircd.conf.5: document "ClientHost" and "ClientUserNick"
Alexander Barton [Wed, 16 Mar 2011 22:44:00 +0000 (23:44 +0100)]
ngircd.conf.5: document "ClientHost" and "ClientUserNick"

13 years agoMove "ClientHost" and "ClientUserNick" to end of [Global] section
Alexander Barton [Wed, 16 Mar 2011 22:43:29 +0000 (23:43 +0100)]
Move "ClientHost" and "ClientUserNick" to end of [Global] section

13 years agoClientUserNick setting
Gabor Adam Toth [Mon, 20 Dec 2010 02:35:17 +0000 (03:35 +0100)]
ClientUserNick setting

13 years agoClientHost setting
Gabor Adam Toth [Mon, 14 Feb 2011 15:16:07 +0000 (16:16 +0100)]
ClientHost setting

13 years agoquit on HTTP commands: GET & POST
Gabor Adam Toth [Mon, 20 Dec 2010 01:01:25 +0000 (02:01 +0100)]
quit on HTTP commands: GET & POST

13 years agochannel: always reject zero-length channel key
Florian Westphal [Mon, 28 Feb 2011 20:09:47 +0000 (21:09 +0100)]
channel: always reject zero-length channel key

previously, any client could join in this configuration:

[Channel]
  Name = #test
  Modes = tnk
  KeyFile = /tmp/foobar

fix this by checking for zero-length key before comparing
key to channel key.

13 years agoPAM-Auth child: log if result can't be reported
Alexander Barton [Wed, 23 Feb 2011 21:55:45 +0000 (22:55 +0100)]
PAM-Auth child: log if result can't be reported

This fixes the followin GCC warning on modern Linux systems as well:

irc-login.c:     In function ‘Hello_User’:
irc-login.c:876: warning: ignoring return value of ‘write’,
                 declared with attribute warn_unused_result

13 years agoProtocol.txt: Update description of CHANINFO command
Alexander Barton [Thu, 17 Feb 2011 11:26:56 +0000 (12:26 +0100)]
Protocol.txt: Update description of CHANINFO command

13 years agoAdd cscope.out to .gitignore file
Alexander Barton [Wed, 16 Feb 2011 13:06:25 +0000 (14:06 +0100)]
Add cscope.out to .gitignore file

13 years agoCorrectly detect errors when handling "MODE x" commands
Alexander Barton [Mon, 14 Feb 2011 00:44:40 +0000 (01:44 +0100)]
Correctly detect errors when handling "MODE x" commands

13 years agoEnhance documentation for the WEBIRC command doc-comments
Alexander Barton [Wed, 29 Dec 2010 13:10:18 +0000 (14:10 +0100)]
Enhance documentation for the WEBIRC command

13 years agoDoxygen'ify irc-login.c
Alexander Barton [Wed, 29 Dec 2010 13:09:46 +0000 (14:09 +0100)]
Doxygen'ify irc-login.c

13 years agoDoxygen'ify irc-channel.c
Alexander Barton [Wed, 29 Dec 2010 12:11:20 +0000 (13:11 +0100)]
Doxygen'ify irc-channel.c

13 years agoDoxygen'ify conn.c
Alexander Barton [Wed, 29 Dec 2010 12:09:01 +0000 (13:09 +0100)]
Doxygen'ify conn.c

13 years agoDoxygen'ify proc.h
Alexander Barton [Mon, 27 Dec 2010 16:37:56 +0000 (17:37 +0100)]
Doxygen'ify proc.h

13 years agoDoxygen'ify parse.h
Alexander Barton [Mon, 27 Dec 2010 16:34:26 +0000 (17:34 +0100)]
Doxygen'ify parse.h

13 years agoDoxygen'ify and update comments in ngircd.{c|h}
Alexander Barton [Mon, 27 Dec 2010 16:31:19 +0000 (17:31 +0100)]
Doxygen'ify and update comments in ngircd.{c|h}

13 years agoDoxygen'ify and update comments in match.c
Alexander Barton [Mon, 27 Dec 2010 16:28:30 +0000 (17:28 +0100)]
Doxygen'ify and update comments in match.c

13 years agoUpdate and translate comments in hash.c
Alexander Barton [Mon, 27 Dec 2010 16:27:21 +0000 (17:27 +0100)]
Update and translate comments in hash.c

13 years agoDoxygen'ify conf.h
Alexander Barton [Mon, 27 Dec 2010 16:25:48 +0000 (17:25 +0100)]
Doxygen'ify conf.h

13 years agoAdd missong Doxygen @file tags to ngircd.h and irc-op.h
Alexander Barton [Mon, 27 Dec 2010 16:23:25 +0000 (17:23 +0100)]
Add missong Doxygen @file tags to ngircd.h and irc-op.h

13 years agoCode cleanup: mostly removing empty lines
Alexander Barton [Mon, 27 Dec 2010 16:20:46 +0000 (17:20 +0100)]
Code cleanup: mostly removing empty lines

13 years agoDoxygen: define ZLIB, PAM, and ZEROCONF
Alexander Barton [Mon, 27 Dec 2010 16:15:37 +0000 (17:15 +0100)]
Doxygen: define ZLIB, PAM, and ZEROCONF

13 years agoAdd Doxygen @file documentation to each source and header file
Alexander Barton [Mon, 27 Dec 2010 16:14:14 +0000 (17:14 +0100)]
Add Doxygen @file documentation to each source and header file

13 years agoUpdated Doxygen configuration file
Alexander Barton [Sun, 26 Dec 2010 18:32:07 +0000 (19:32 +0100)]
Updated Doxygen configuration file

Removed unnecessary variables DETAILS_AT_TOP, EXTRACT_PRIVATE,
EXTRACT_LOCAL_CLASSES, added SHOW_DIRECTORIES=YES, STRIP_CODE_COMMENTS=NO,
REFERENCED_BY_RELATION=YES, REFERENCES_RELATION=YES,
HTML_DYNAMIC_SECTIONS=YES and GENERATE_DOCSET=NO; updated PREDEFINED.

13 years agoDoxygen: remove own header and CSS file
Alexander Barton [Sun, 26 Dec 2010 18:27:29 +0000 (19:27 +0100)]
Doxygen: remove own header and CSS file

Use the ones of Doxygen instead, this has the advantage that we
benefit of new functionality of Doxygen without having to make changes.

13 years agoMake write buffers bigger, but flush early
Alexander Barton [Sat, 12 Feb 2011 22:24:56 +0000 (23:24 +0100)]
Make write buffers bigger, but flush early

This patch
 - makes the server write buffer bigger: 64k,
 - makes the regular write buffer bigger: 32k,
 - tries to flush the write buffer starting at 4K.

Before this patch, a client got disconnected if the buffer flushing at 4k
failed, now regular clients can store up to 32k and servers up 64k even
if flushing is not possible at the moment (e.g. on slow links).

13 years agoEnhance logging on "write buffer overflow"
Alexander Barton [Sat, 12 Feb 2011 22:24:26 +0000 (23:24 +0100)]
Enhance logging on "write buffer overflow"

13 years agoClean up Validate_Prefix(); don't send punctuation in ERROR commands
Alexander Barton [Sat, 29 Jan 2011 15:05:55 +0000 (16:05 +0100)]
Clean up Validate_Prefix(); don't send punctuation in ERROR commands

13 years agoBetter check for invalid IRC+ PASS command
Alexander Barton [Sun, 23 Jan 2011 17:38:36 +0000 (18:38 +0100)]
Better check for invalid IRC+ PASS command

Don't do a NULL-pointer dereference when a remote server using the
IRC+ protocol sends an invalid PASS command without the required
<serverversion> parameter ...

13 years agoRead_Request(): don't access possibly free'd CLIENT structure
Alexander Barton [Sun, 23 Jan 2011 14:14:18 +0000 (15:14 +0100)]
Read_Request(): don't access possibly free'd CLIENT structure

Handle_Buffer() can shut down connections and remove clients, so after
calling it, we have to make sure that our CLIENT pointer is still valid.

13 years agongircd-test2.conf: really disable Ident and PAM ...
Alexander Barton [Wed, 19 Jan 2011 00:19:40 +0000 (01:19 +0100)]
ngircd-test2.conf: really disable Ident and PAM ...

13 years agoLog "Can't read MOTD file" as "configuration error"
Alexander Barton [Tue, 18 Jan 2011 22:44:07 +0000 (23:44 +0100)]
Log "Can't read MOTD file" as "configuration error"

Now this error message is displayed in the console without debug prefix
when running the configuration test (--configtest).

13 years agoAllow "Port = 0" in [Server] blocks
Alexander Barton [Tue, 18 Jan 2011 21:45:01 +0000 (22:45 +0100)]
Allow "Port = 0" in [Server] blocks

Port number 0 marks remote servers that try to connect to this
daemon, but where this daemon never tries to establis a connection
on its own: only incoming connections are allowed.

13 years agoconf: fix 'Value of "..." is not a number!' for negative values
Alexander Barton [Tue, 18 Jan 2011 21:41:27 +0000 (22:41 +0100)]
conf: fix 'Value of "..." is not a number!' for negative values

Don't use isdigit() function any more, because it only checks the
first character of the variable value and because it doesn't know
about the minus sign which is required e.g. for "Group = -1".

13 years agoDon't read MOTD file twice
Alexander Barton [Tue, 18 Jan 2011 21:01:27 +0000 (22:01 +0100)]
Don't read MOTD file twice

The MOTD file is read in Read_Config(), so don't read it when handling
the "MotdFile" configuration variable. Instead make sure that it is
initialized properly when (re-)reading the configuration.

13 years agoAdd [Features] section to ngircd-test{1|2}.conf
Alexander Barton [Tue, 18 Jan 2011 20:39:48 +0000 (21:39 +0100)]
Add [Features] section to ngircd-test{1|2}.conf

Fix commit 5a34bb203a:
It is not enough to strip the "No" prefix from "Ident" and "PAM",
but we have to introduce the new [Features] section to fix all
warning messages of ngIRCd.

Variables "Ident" and "PAM" in [Global] are completely wrong :-(

13 years agoEnable WHOIS command to return information about services
Alexander Barton [Tue, 18 Jan 2011 20:04:55 +0000 (21:04 +0100)]
Enable WHOIS command to return information about services

13 years agoUpdate testsuite configuration: strip No... prefixes
Alexander Barton [Tue, 18 Jan 2011 13:28:39 +0000 (14:28 +0100)]
Update testsuite configuration: strip No... prefixes

13 years agoAdd connection/socket information to some log messages
Alexander Barton [Sun, 16 Jan 2011 22:24:41 +0000 (23:24 +0100)]
Add connection/socket information to some log messages

13 years agoImplement channel mode 'O': "IRC operators only"
Alexander Barton [Mon, 10 Jan 2011 11:15:05 +0000 (12:15 +0100)]
Implement channel mode 'O': "IRC operators only"

This channel mode is used on DALnet (bahamut), for example.

13 years agoRemove ZeroConf variable from sample-ngircd.conf
Alexander Barton [Sun, 9 Jan 2011 23:10:01 +0000 (00:10 +0100)]
Remove ZeroConf variable from sample-ngircd.conf

13 years agoRemove support for ZeroConf/Bonjour/Rendezvous service registration
Alexander Barton [Sun, 9 Jan 2011 22:51:30 +0000 (23:51 +0100)]
Remove support for ZeroConf/Bonjour/Rendezvous service registration

13 years agoTOPIC command: test for channel admin rights correctly
Alexander Barton [Sun, 9 Jan 2011 22:08:15 +0000 (23:08 +0100)]
TOPIC command: test for channel admin rights correctly

This enables other servers, services and IRC operators to change
channel topics, even when the client is not joined to this channel.

Now the handler for TOPIC behaves like the one for MODE.

13 years agoChannel_CheckAdminRights(): test if client can admin a channel
Alexander Barton [Sun, 9 Jan 2011 21:40:11 +0000 (22:40 +0100)]
Channel_CheckAdminRights(): test if client can admin a channel

This generic function tests if a client is allowed to do administrative
tasks to a specific channel:

 - servers and services are always truested ("allowed everything"),
 - channel operators are allowed,
 - IRC operarors are allowed if OperCanUseMode is set in the config.

13 years agoconf: fix 'unknown section' FEATURES parse error
Florian Westphal [Sun, 9 Jan 2011 21:19:17 +0000 (22:19 +0100)]
conf: fix 'unknown section' FEATURES parse error

pointed out by Alex:
ngircd.conf, line 105: Unknown section "[Features]"!

13 years agoIRC_TOPIC(): code cleanup
Alexander Barton [Sun, 9 Jan 2011 15:23:33 +0000 (16:23 +0100)]
IRC_TOPIC(): code cleanup

13 years agoconf: move 'run-time-feature-disable' options to new FEATURE section
Florian Westphal [Sun, 9 Jan 2011 18:42:42 +0000 (19:42 +0100)]
conf: move 'run-time-feature-disable' options to new FEATURE section

13 years agoarray: remove check for allocated == 0
Florian Westphal [Sun, 9 Jan 2011 18:40:54 +0000 (19:40 +0100)]
array: remove check for allocated == 0

allocated can only be zero if ->mem is NULL.

13 years agoarray: remove alignment of requested size
Florian Westphal [Sun, 9 Jan 2011 18:28:50 +0000 (19:28 +0100)]
array: remove alignment of requested size

libc should know better than us.
Also, this helps debugging with tools like valgrind:
When you allocate an array of size x, and then erronoulsy
use x+1 valgrind cannot detect the bug because due to ALIGN_()
made by array.c we might have allocated more than size x...

13 years agoconf: Warn if PAM=true when ngircd was built without PAM support
Florian Westphal [Sun, 9 Jan 2011 17:17:35 +0000 (18:17 +0100)]
conf: Warn if PAM=true when ngircd was built without PAM support

13 years agoconf: add missing static qualifier
Florian Westphal [Sun, 9 Jan 2011 16:54:21 +0000 (17:54 +0100)]
conf: add missing static qualifier

internal helper, so it should be static.

also, add UNUSED to 'Line'.

13 years agoUpdate copyright notices for 2010 :)
Alexander Barton [Sun, 9 Jan 2011 15:11:12 +0000 (16:11 +0100)]
Update copyright notices for 2010 :)

And update the NEWS and ChangeLog file as well.

13 years agoMake NoZeroConf option work with Howl
Alexander Barton [Sun, 9 Jan 2011 13:31:18 +0000 (14:31 +0100)]
Make NoZeroConf option work with Howl

13 years agoconfig: deprecate NoXX-Options
Florian Westphal [Sat, 8 Jan 2011 14:56:14 +0000 (15:56 +0100)]
config: deprecate NoXX-Options

ngircd unfortunately uses several options using double-negation, e.g.

NoIdent = No, NoPam = No, etc.

This renames all options by dropping the "No" prefix, e.g.
"NoIdent = no" becomes "Ident = yes".

The old options will continue to work, but will cause a warning
message.

Also update man pages and default config.

To prevent silly
'Ident = yes' from appearing in  --configtest output in the
'ident support not compiled in and Ident Option not used' case,
make default value depend on feature availability.
If feature is available, enable by default, otherwise disable.

We might consider moving these options to a new
[Feature]

section, or something like that, because none of these options are
essential.

Another possible improvement:

'Ident = yes' option in ngircd.conf causes a warning if ngircd was
built without ident support.

This does not happen with e.g. zeroconf....

13 years agochannel: fix confusing "adding to invite list" debug output
Florian Westphal [Fri, 31 Dec 2010 10:32:20 +0000 (11:32 +0100)]
channel: fix confusing "adding to invite list" debug output

adding entries to ban list produced 'invite list' debug output...

13 years agoCommand throttling: introduce MAX_COMMANDS_SERVICE
Alexander Barton [Wed, 29 Dec 2010 13:19:51 +0000 (14:19 +0100)]
Command throttling: introduce MAX_COMMANDS_SERVICE

New MAX_COMMANDS_SERVICE (currently set to MAX_COMMANDS_SERVER[10]),
so that services are handled like servers (and not regular users).

13 years agoDon't throttle services and servers beeing registered
Alexander Barton [Wed, 29 Dec 2010 13:12:34 +0000 (14:12 +0100)]
Don't throttle services and servers beeing registered

13 years agoXcode: correctly sort files
Alexander Barton [Wed, 29 Dec 2010 13:11:40 +0000 (14:11 +0100)]
Xcode: correctly sort files

13 years agoDon't assert() when serching a client for an invalid server token
Alexander Barton [Fri, 24 Dec 2010 11:48:03 +0000 (12:48 +0100)]
Don't assert() when serching a client for an invalid server token

This is only relevant when a trusted server on a server-server link
sends invalid commands.

13 years agongIRCd release 17.1 rel-17.1
Alexander Barton [Sun, 19 Dec 2010 14:59:00 +0000 (15:59 +0100)]
ngIRCd release 17.1

13 years ago--configtest: remember if MOTD is configured by file or phrase
Alexander Barton [Thu, 2 Dec 2010 15:51:21 +0000 (16:51 +0100)]
--configtest: remember if MOTD is configured by file or phrase

Configuration variables "MotdFile" and "MotdPhrase" are mutually
exclusive; so don't display content in both of them when running
"ngircd --configtest": instead remember which one is beeing used.

13 years agoEnhance log messages when establishing server links a little bit
Alexander Barton [Thu, 2 Dec 2010 12:40:08 +0000 (13:40 +0100)]
Enhance log messages when establishing server links a little bit

13 years agoReset ID of outgoing server link on DNS error correctly
Alexander Barton [Thu, 2 Dec 2010 12:38:42 +0000 (13:38 +0100)]
Reset ID of outgoing server link on DNS error correctly

Not resetting the ID prevents the daemon from trying to re-establish
outgoing server links when the DNS resolver failed to resole a hostname.

13 years agoDon't log critical (or worse) messages to stderr
Alexander Barton [Thu, 2 Dec 2010 12:36:19 +0000 (13:36 +0100)]
Don't log critical (or worse) messages to stderr

stderr isn't redirected to the "error file" any more, so there is
no point in trying to log to it ...

13 years agoManual page ngircd(8): add SIGNALS section
Alexander Barton [Wed, 1 Dec 2010 21:04:28 +0000 (22:04 +0100)]
Manual page ngircd(8): add SIGNALS section