ngircd-alex.git
6 years agoirc-write.c: Clean up code and add more documentation comments
Alexander Barton [Tue, 6 Aug 2013 21:21:48 +0000 (23:21 +0200)]
irc-write.c: Clean up code and add more documentation comments

6 years agoFix return code of some IRC_WriteXXX() functions
Alexander Barton [Tue, 6 Aug 2013 21:16:35 +0000 (23:16 +0200)]
Fix return code of some IRC_WriteXXX() functions

These functions usually write to more than one target, and therefore
can't return value indicating success or failure in a sane way. And, even
more omportant, these functions should send to as much as possible clients
and not stop at the first client which isn't reachable any more!

6 years agoStreamline punctuation of log messages
Alexander Barton [Tue, 6 Aug 2013 19:34:32 +0000 (21:34 +0200)]
Streamline punctuation of log messages

See commit d38d153f for details.

6 years agoUpdate NEWS and ChangeLog files
Alexander Barton [Tue, 6 Aug 2013 19:14:56 +0000 (21:14 +0200)]
Update NEWS and ChangeLog files

6 years agoMore spelling corrections
Federico G. Schwindt [Mon, 5 Aug 2013 10:06:52 +0000 (11:06 +0100)]
More spelling corrections

6 years agoInline who_flags_status
Federico G. Schwindt [Mon, 5 Aug 2013 10:05:12 +0000 (11:05 +0100)]
Inline who_flags_status

6 years agoConvert more code to use Channel_HasMode
Federico G. Schwindt [Sun, 4 Aug 2013 20:16:03 +0000 (21:16 +0100)]
Convert more code to use Channel_HasMode

6 years agoSimplify mode checking on channels and users within a channel
Federico G. Schwindt [Sun, 4 Aug 2013 17:28:04 +0000 (18:28 +0100)]
Simplify mode checking on channels and users within a channel

Add Channel_HasMode() and Channel_UserHasMode() and use it where
possible.

6 years agoUse Client_HasMode and Client_HasFlag where appropriate
Federico G. Schwindt [Sun, 4 Aug 2013 16:25:24 +0000 (17:25 +0100)]
Use Client_HasMode and Client_HasFlag where appropriate

6 years agoMerge branch 'bug152-AllowedChannelTypes'
Alexander Barton [Sun, 4 Aug 2013 12:11:12 +0000 (14:11 +0200)]
Merge branch 'bug152-AllowedChannelTypes'

* bug152-AllowedChannelTypes:
  Implement new configuration option "AllowedChannelTypes"
  Introduce "CHANTYPES" #define

6 years agoImplement new configuration option "AllowedChannelTypes" bug152-AllowedChannelTypes
Alexander Barton [Sun, 4 Aug 2013 01:06:53 +0000 (03:06 +0200)]
Implement new configuration option "AllowedChannelTypes"

The new configuration variable "AllowedChannelTypes" lists all allowed
channel types (channel prefixes) for newly created channels on the local
server. By default, all supported channel types are allowed.

If set to the empty string, local clients can't create new channels at
all, which equals the old "PredefChannelsOnly = yes" setting.

This patch deprecates the "PredefChannelsOnly" variable, too, but it is
still supported and translated to the apropriate "AllowedChannelTypes"
setting. When "PredefChannelsOnly" is processed, a warning message is
logged.

Closes bug #152.

6 years agoMore spelling fixes
Federico G. Schwindt [Sun, 4 Aug 2013 11:33:10 +0000 (12:33 +0100)]
More spelling fixes

Remove superflous comments, mostly in German. Fix spelling and
use american variants for consistency.

6 years agoChange cloaked hostname to be malloc'd on demand
Federico G. Schwindt [Sun, 4 Aug 2013 09:15:11 +0000 (10:15 +0100)]
Change cloaked hostname to be malloc'd on demand

This shaves a few bytes when cloaked hostnames are not used and
restricts the cloakhost announcement iif there is something to
send.

6 years agoAdd Client_HasFlag() to check if a client has certain flag
Federico G. Schwindt [Sun, 4 Aug 2013 02:20:13 +0000 (03:20 +0100)]
Add Client_HasFlag() to check if a client has certain flag

6 years agoFix spelling
Federico G. Schwindt [Sun, 4 Aug 2013 02:15:27 +0000 (03:15 +0100)]
Fix spelling

6 years agoRename XXX_Fingerprint to XXX_CertFp
Federico G. Schwindt [Sun, 4 Aug 2013 02:14:27 +0000 (03:14 +0100)]
Rename XXX_Fingerprint to XXX_CertFp

6 years agoImproved client announcement
Federico G. Schwindt [Sat, 3 Aug 2013 23:22:38 +0000 (00:22 +0100)]
Improved client announcement

Move Announce_User() to client.c and rename it to Client_Announce().
Use this in cb_introduceClient() instead of duplicating the code.
This fix the certificate fingerprint announcement for new clients.
Also ensure the certificate fingerprint is only announced if the
client supports it (`M' flag).

6 years agoIntroduce "CHANTYPES" #define
Alexander Barton [Sat, 3 Aug 2013 22:34:48 +0000 (00:34 +0200)]
Introduce "CHANTYPES" #define

This #define lists all the prefix characters of all supported channel
types, this is "#&+" at the moment.

6 years agoMerge remote-tracking branch 'fgsch/certfp'
Alexander Barton [Fri, 2 Aug 2013 22:29:12 +0000 (00:29 +0200)]
Merge remote-tracking branch 'fgsch/certfp'

* fgsch/certfp:
  Simplify MOTD handling
  Add certificate fingerprint support

6 years agoSimplify MOTD handling
Federico G. Schwindt [Fri, 2 Aug 2013 15:43:01 +0000 (16:43 +0100)]
Simplify MOTD handling

Merge Show_MOTD_Start, Show_MOTD_Sendline and Show_MOTD_End into
IRC_Show_MOTD.

6 years agoAdd certificate fingerprint support
Federico G. Schwindt [Fri, 2 Aug 2013 00:47:06 +0000 (01:47 +0100)]
Add certificate fingerprint support

6 years agoUpdate irc-server.c to use irc-macros.h
Alexander Barton [Fri, 2 Aug 2013 22:00:47 +0000 (00:00 +0200)]
Update irc-server.c to use irc-macros.h

And add some comments :-)

6 years agoCommands.txt: Update more descriptions
Alexander Barton [Fri, 2 Aug 2013 21:59:32 +0000 (23:59 +0200)]
Commands.txt: Update more descriptions

Update description of "CHANINFO", "METADATA", "NJOIN", "SERVER", "SQUIT",
"GET", and "POST".

6 years agoUpdate irc-oper.c to use irc-macros.h
Alexander Barton [Fri, 2 Aug 2013 21:27:11 +0000 (23:27 +0200)]
Update irc-oper.c to use irc-macros.h

6 years agoCommands.txt: Update more descriptions
Alexander Barton [Fri, 2 Aug 2013 21:25:23 +0000 (23:25 +0200)]
Commands.txt: Update more descriptions

Update description of "CONNECT", "DIE", "DISCONNECT", "GLINE", "KILL",
"KLINE", "OPER", "REHASH", "RESTART" and "WALLOPS".

6 years agoCommands.txt: Fix <target> description of TRACE command
Alexander Barton [Fri, 2 Aug 2013 00:16:21 +0000 (02:16 +0200)]
Commands.txt: Fix <target> description of TRACE command

6 years agoUpdate irc-mode.c to use irc-macros.h
Alexander Barton [Thu, 1 Aug 2013 23:48:13 +0000 (01:48 +0200)]
Update irc-mode.c to use irc-macros.h

This includes code cleanups and more comments, too.

6 years agoUpdate irc-channel.c to use irc-macros.h
Alexander Barton [Thu, 1 Aug 2013 23:46:57 +0000 (01:46 +0200)]
Update irc-channel.c to use irc-macros.h

This includes code cleanups, too :-)

6 years agoCommands.txt: Update more descriptions
Alexander Barton [Thu, 1 Aug 2013 23:45:02 +0000 (01:45 +0200)]
Commands.txt: Update more descriptions

Update descriptions of "AWAY", "JOIN", "LIST", "MODE", "PART",
"TOPC", and "TRACE".

6 years agoCommands.txt: Streamline references to IRC+ protocol
Alexander Barton [Thu, 1 Aug 2013 23:42:31 +0000 (01:42 +0200)]
Commands.txt: Streamline references to IRC+ protocol

6 years agoShow IRC Operator name when logging a successful OPER command
Alexander Barton [Wed, 31 Jul 2013 22:24:10 +0000 (00:24 +0200)]
Show IRC Operator name when logging a successful OPER command

6 years agoAdd penalty times in error paths of generic IRC helper macros
Alexander Barton [Tue, 30 Jul 2013 20:08:04 +0000 (22:08 +0200)]
Add penalty times in error paths of generic IRC helper macros

Add a 2 second penalty time when the number of parameters is invalid.

6 years agoAdd more penalty times in error paths
Alexander Barton [Tue, 30 Jul 2013 20:05:00 +0000 (22:05 +0200)]
Add more penalty times in error paths

This patch changes the handlers of the "PASS", "NICK", "USER",
and "SERVICE" commands to enforce a 2 second penalty when an error
like "need more/other parameters" occurs.

More functions should follow, I think ...

6 years agoUpdate irc-login.c to use irc-macros.h
Alexander Barton [Tue, 30 Jul 2013 19:18:42 +0000 (21:18 +0200)]
Update irc-login.c to use irc-macros.h

This includes code cleanups, too :-)

6 years agoCommands.txt: Update more descriptions
Alexander Barton [Tue, 30 Jul 2013 19:12:24 +0000 (21:12 +0200)]
Commands.txt: Update more descriptions

Update descriptions of "NICK", "PASS", "PING", "PONG", "QUIT", "USER",
"WEBIRC", "SERVICE", and "SVSNICK".

6 years agoCommands.txt: Update description of "PRIVMSG", "NOTICE", and "SQUERY"
Alexander Barton [Fri, 19 Jul 2013 16:16:12 +0000 (18:16 +0200)]
Commands.txt: Update description of "PRIVMSG", "NOTICE", and "SQUERY"

6 years agoAdd "compile" to .gitignore file
Alexander Barton [Thu, 18 Jul 2013 21:43:12 +0000 (23:43 +0200)]
Add "compile" to .gitignore file

6 years agoCommands.txt: Update description of the "ERROR" command
Alexander Barton [Thu, 18 Jul 2013 21:42:00 +0000 (23:42 +0200)]
Commands.txt: Update description of the "ERROR" command

6 years agoUpdate irc.c to use irc-macros.h
Alexander Barton [Thu, 18 Jul 2013 21:35:33 +0000 (23:35 +0200)]
Update irc.c to use irc-macros.h

This includes code cleanups and better documentation for some
functions, too.

6 years agoMerge pull request #4 from fgsch/master
Alexander Barton [Thu, 18 Jul 2013 20:38:19 +0000 (13:38 -0700)]
Merge pull request #4 from fgsch/master

Changes for ngircd 21.

6 years agoHandle services in IRC_WHOIS_SendReply()
Federico G. Schwindt [Thu, 18 Jul 2013 18:52:17 +0000 (19:52 +0100)]
Handle services in IRC_WHOIS_SendReply()

If the target is a service, advertise it as such and ignore operator mode.

6 years agoFix spelling
Federico G. Schwindt [Thu, 18 Jul 2013 16:51:02 +0000 (17:51 +0100)]
Fix spelling

6 years agoSlightly update ngircd.8 manual page
Alexander Barton [Wed, 17 Jul 2013 12:36:54 +0000 (14:36 +0200)]
Slightly update ngircd.8 manual page

7 years agoTravis-CI: Enable OpenSSL and libiconv support bug151-iconv
Alexander Barton [Tue, 4 Jun 2013 10:46:44 +0000 (12:46 +0200)]
Travis-CI: Enable OpenSSL and libiconv support

7 years agoUpdated NEWS and ChangeLog files
Alexander Barton [Tue, 4 Jun 2013 09:42:25 +0000 (11:42 +0200)]
Updated NEWS and ChangeLog files

7 years agoEnhance Travis-CI configuration file
Alexander Barton [Tue, 4 Jun 2013 09:35:54 +0000 (11:35 +0200)]
Enhance Travis-CI configuration file

It now configures the sandbox to build ngIRCd with IPv6, IDENT, PAM,
TCP-Wrappers, and zlib support. And it installs expect(1) and telnet(1)
for the test suite.

7 years agoMerge pull request #3 from Cofyc/master
Alexander Barton [Thu, 30 May 2013 15:55:48 +0000 (08:55 -0700)]
Merge pull request #3 from Cofyc/master

irc-info.c: some commands use LINE_LEN as command buffer len

7 years agoLINE_LEN -> COMMAND_LEN
Yecheng Fu [Thu, 30 May 2013 05:53:33 +0000 (13:53 +0800)]
LINE_LEN -> COMMAND_LEN
LINE_LEN is configuration file line length

7 years agoIncludeDir: default to "$SYSCONFDIR/ngircd.conf.d" bug157-IncludeDir
Alexander Barton [Fri, 24 May 2013 22:25:38 +0000 (00:25 +0200)]
IncludeDir: default to "$SYSCONFDIR/ngircd.conf.d"

Now "IncludeDir" defaults to "$SYSCONFDIR/ngircd.conf.d" instead
of no directory, but a missing directory is only reported as an
error if it has explicitely configured in the main configuration
file and simply ignored otherwise.

Therefore it is now possible not to touch the default (sample)
configuration file at all, and set all distribution and/or system
specific configuration options in "*.conf" files stored in
"$SYSCONFDIF/ngircd.conf.d/".

Thanks to "Elmasloco" for the idea!

7 years ago"IncludeDir" can't be overwritten by included files
Alexander Barton [Fri, 24 May 2013 20:40:23 +0000 (22:40 +0200)]
"IncludeDir" can't be overwritten by included files

7 years agoImplement new configuration option "IncludeDir"
Alexander Barton [Fri, 24 May 2013 20:29:41 +0000 (22:29 +0200)]
Implement new configuration option "IncludeDir"

The option "IncludeDir" in the [Options] section can be used
to specify a directory which can contain further configuration
files and configuration file snippets matching the pattern
"*.conf" that should be read in after the main configuration
file ("ngircd.conf" by default) has been parsed.

Closes bug #157.

7 years agoconf.c: New function Read_Config_File()
Alexander Barton [Fri, 24 May 2013 19:57:42 +0000 (21:57 +0200)]
conf.c: New function Read_Config_File()

This function reads in and parses a single configuration file.
Adjust all other functions to display the correct name of the
file being read in currently.

7 years agoRename "Mask" variables into "Pattern" in assert() statements
Alexander Barton [Sun, 21 Apr 2013 13:57:51 +0000 (15:57 +0200)]
Rename "Mask" variables into "Pattern" in assert() statements

This completes commit 3ab00e3a11 which broke debug builds.

7 years agoEnsure there is enough space for the mask
Federico G. Schwindt [Sat, 20 Apr 2013 09:53:16 +0000 (10:53 +0100)]
Ensure there is enough space for the mask

As pointed by Alex while strl{cat,cpy} take the full length
we need to leave space to ensure a proper mask is always created
so revert the removal of - N from my last change.

7 years agoBetter description for Lists_CheckReason()
Federico G. Schwindt [Fri, 19 Apr 2013 22:51:42 +0000 (23:51 +0100)]
Better description for Lists_CheckReason()

7 years agoChange Lists_MakeMask() to receive a buffer for the mask
Federico G. Schwindt [Fri, 19 Apr 2013 23:19:03 +0000 (00:19 +0100)]
Change Lists_MakeMask() to receive a buffer for the mask

Change callers accordingly so they don't rely on a global buffer and
rename Mask to Pattern where it makes sense since some functions
where indeed receiving a pattern and not a mask.

7 years agoFix use-after-free on Lists_CheckReason()
Federico G. Schwindt [Fri, 19 Apr 2013 22:51:42 +0000 (23:51 +0100)]
Fix use-after-free on Lists_CheckReason()

Change Lists_CheckReason() to receive a buffer where the reason
will be stored and its length.  Change callers accordingly.

Change Class_GetMemberReason() (and its callers) in a similar way
so it doesn't rely on a global buffer for the rejected reason.

7 years agoUpdate doc/Platforms.txt a little bit ...
Alexander Barton [Mon, 1 Apr 2013 15:23:49 +0000 (17:23 +0200)]
Update doc/Platforms.txt a little bit ...

7 years agoBuild OS X package with correct file permissions
Alexander Barton [Wed, 27 Mar 2013 12:09:23 +0000 (13:09 +0100)]
Build OS X package with correct file permissions

This requires to have the correct permissions in the source tree, which
is "root:wheel", which in turn requires root privileges. Therefore the
Makefile now tries to become root on "make osxpkg-dest" but tries hard
not to require root privileges on "clean" etc.

7 years agoXcode: fix detection of host OS, vendor, and CPU
Alexander Barton [Wed, 27 Mar 2013 11:47:12 +0000 (12:47 +0100)]
Xcode: fix detection of host OS, vendor, and CPU

7 years agoPackageMaker: use relativ path names
Alexander Barton [Wed, 27 Mar 2013 11:45:30 +0000 (12:45 +0100)]
PackageMaker: use relativ path names

7 years agoAdd Travis-CI configuration file
Alexander Barton [Mon, 25 Mar 2013 14:24:47 +0000 (15:24 +0100)]
Add Travis-CI configuration file

7 years agoMake configure[.ng] compatible with autoconf 1.10 again
Alexander Barton [Mon, 18 Mar 2013 11:45:32 +0000 (12:45 +0100)]
Make configure[.ng] compatible with autoconf 1.10 again

The incompatibility has been introduced by commit d0c9f4a6,
"configure: search for iconv_open as well as libiconv_open".

7 years agoLists_CheckReason(): Check for Client_MaskCloaked()
Sebastian Köhler [Wed, 20 Mar 2013 02:40:31 +0000 (03:40 +0100)]
Lists_CheckReason(): Check for Client_MaskCloaked()

Look for possible cloaked Masks in Lists. Users with +x usermode can be
banned with their cloaked hostname now.

7 years agoServices.txt: Anope 1.9.8 has been released now
Alexander Barton [Wed, 13 Mar 2013 21:08:16 +0000 (22:08 +0100)]
Services.txt: Anope 1.9.8 has been released now

7 years agoCommands.txt: Update description of the "KILL" command
Alexander Barton [Sat, 9 Mar 2013 17:00:49 +0000 (18:00 +0100)]
Commands.txt: Update description of the "KILL" command

7 years agoConn_Handler(): Don't test for penalty times
Alexander Barton [Sat, 9 Mar 2013 16:58:10 +0000 (17:58 +0100)]
Conn_Handler(): Don't test for penalty times

The Conn_Handler() main loop calls Handle_Buffer() which checks for the
"penalty time" of each client itself, so don't do it twice.

7 years agoDon't read SSL client data before DNS resolver is finished
Alexander Barton [Sat, 9 Mar 2013 16:44:34 +0000 (17:44 +0100)]
Don't read SSL client data before DNS resolver is finished

Fix the cb_clientserver_ssl() callback function to not read in and store SSL
encrypted client data before the asynchronous DNS resolver sub-process has
finished: This could have resulted in discarding the resolved client hostname
and IDENT reply afterwards, because in some situations (timing dependent) the
NICK and USER commands could have already been read in from the client,
stored in the buffer, and been processed.

Thanks to Julian Brost for reporting the issue and testing, and to Federico
G. Schwindt <fgsch@lodoss.net> for helping to debug it!

7 years agoIncrease password length limit to 64 characters
Alexander Barton [Fri, 8 Mar 2013 18:31:57 +0000 (19:31 +0100)]
Increase password length limit to 64 characters

Closes bug #154.

7 years agodoc/Services.txt: Update Anope status and URL
Alexander Barton [Tue, 26 Feb 2013 08:38:27 +0000 (09:38 +0100)]
doc/Services.txt: Update Anope status and URL

7 years agoCommands.txt: Update description of the "KICK" command
Alexander Barton [Sun, 24 Feb 2013 17:53:33 +0000 (18:53 +0100)]
Commands.txt: Update description of the "KICK" command

7 years agoCommands.txt: Update description of the "INVITE" command
Alexander Barton [Sun, 24 Feb 2013 17:53:10 +0000 (18:53 +0100)]
Commands.txt: Update description of the "INVITE" command

7 years agoirc-op.c: use irc-macros.h
Alexander Barton [Sun, 24 Feb 2013 17:51:54 +0000 (18:51 +0100)]
irc-op.c: use irc-macros.h

7 years agoirc-cap.c: use irc-macros.h
Alexander Barton [Sun, 24 Feb 2013 17:51:43 +0000 (18:51 +0100)]
irc-cap.c: use irc-macros.h

7 years agoirc-op.c: Update source code documentation
Alexander Barton [Sun, 24 Feb 2013 17:50:12 +0000 (18:50 +0100)]
irc-op.c: Update source code documentation

7 years agoirc-cap.c: Update source code documentation
Alexander Barton [Sun, 24 Feb 2013 17:49:07 +0000 (18:49 +0100)]
irc-cap.c: Update source code documentation

7 years agoAdd new _IRC_ARGC_EQ_OR_RETURN_ macro to irc-macros.h
Alexander Barton [Sun, 24 Feb 2013 15:20:27 +0000 (16:20 +0100)]
Add new _IRC_ARGC_EQ_OR_RETURN_ macro to irc-macros.h

7 years agoAdd new _IRC_ARGC_BETWEEN_OR_RETURN_ macro to irc-macros.h
Alexander Barton [Sun, 24 Feb 2013 15:14:13 +0000 (16:14 +0100)]
Add new _IRC_ARGC_BETWEEN_OR_RETURN_ macro to irc-macros.h

7 years agoirc-cap.c: move static functions to the top of the file
Alexander Barton [Sun, 24 Feb 2013 15:08:17 +0000 (16:08 +0100)]
irc-cap.c: move static functions to the top of the file

And remove now unnecessary (local) prototypes.

7 years agoUpdate Doxygen configuration
Alexander Barton [Fri, 22 Feb 2013 17:11:26 +0000 (18:11 +0100)]
Update Doxygen configuration

7 years agoClean up Xcode project file, remove outdated files, add missing
Alexander Barton [Fri, 15 Feb 2013 21:54:36 +0000 (22:54 +0100)]
Clean up Xcode project file, remove outdated files, add missing

7 years agosrc/testsuite/README: add whois-test.e
Alexander Barton [Fri, 15 Feb 2013 21:54:32 +0000 (22:54 +0100)]
src/testsuite/README: add whois-test.e

7 years agoirc-login.c: conenction -> connection
Alexander Barton [Fri, 22 Feb 2013 14:15:22 +0000 (15:15 +0100)]
irc-login.c: conenction -> connection

Introduced by commit d3ef2239 as of Sun Jan 16 2011 ...
Thanks to Patrik Schindler <poc@pocnet.net> for reporting this!

7 years agoMerge branch 'bug151-iconv' into master
Alexander Barton [Fri, 15 Feb 2013 20:59:28 +0000 (21:59 +0100)]
Merge branch 'bug151-iconv' into master

* bug151-iconv:
  configure: search for iconv_open as well as libiconv_open

7 years agoMerge branch 'bug153-ServerMask' into master
Alexander Barton [Fri, 15 Feb 2013 20:59:06 +0000 (21:59 +0100)]
Merge branch 'bug153-ServerMask' into master

* bug153-ServerMask:
  Update irc-info.c to use irc-macros.h
  Add new irc-macros.h to project
  irc-info.c: add/streamline function documentation comments
  irc-info: move static functions at the top of the file
  Implement new function Client_SearchServer()

Conflicts:
src/ngircd/irc-info.c

7 years agoconfigure: search for iconv_open as well as libiconv_open
Alexander Barton [Fri, 15 Feb 2013 20:32:08 +0000 (21:32 +0100)]
configure: search for iconv_open as well as libiconv_open

On some installations iconv_open() is actually libiconv_open().
iconv_open() is the glibc version while libiconv_open() is the libiconv
version. This patch enables ngIRCd to detect both cases.

Tested on OpenBSD 5.1.

Closes bug #151.

7 years agoconfigure: conversation -> conversion
Alexander Barton [Fri, 15 Feb 2013 20:26:47 +0000 (21:26 +0100)]
configure: conversation -> conversion

7 years agongIRCd Release 20.2
Alexander Barton [Fri, 15 Feb 2013 11:18:02 +0000 (12:18 +0100)]
ngIRCd Release 20.2

(cherry picked from commit c45d9dd1f08fddb95fa01d62c69848cd753a3161)

7 years agoKICK: Fix denial of service bug
Sebastian Köhler [Thu, 14 Feb 2013 18:21:01 +0000 (19:21 +0100)]
KICK: Fix denial of service bug

Test if the user that it is to be kicked is on the channel before user
channel modes are tested. Otherwise assert( cl2chan != NULL ); in
line 742 would fail and stop the service.

7 years agosighandlers.c: Update some log messages
Alexander Barton [Tue, 12 Feb 2013 23:26:16 +0000 (00:26 +0100)]
sighandlers.c: Update some log messages

7 years agomy_sd_listen_fds(): really return an "int"
Alexander Barton [Mon, 11 Feb 2013 22:25:13 +0000 (23:25 +0100)]
my_sd_listen_fds(): really return an "int"

This fixes the following warning using Apple LLVM version 4.2
(clang-425.0.24) on OS X:

  src/ngircd/conn.c:157:9: Implicit conversion loses integer
                           precision: 'long' to 'int'

7 years agoMerge branch 'bug155-allowAtInUser'
Alexander Barton [Mon, 11 Feb 2013 12:58:30 +0000 (13:58 +0100)]
Merge branch 'bug155-allowAtInUser'

* bug155-allowAtInUser:
  Allow "@" character in user names for authentication

7 years agoAllow "@" character in user names for authentication bug155-allowAtInUser
Alexander Barton [Mon, 11 Feb 2013 12:57:54 +0000 (13:57 +0100)]
Allow "@" character in user names for authentication

The "@" character isn't allowed in IRC usernames, because it is the
separator between user name and hostname in IRC masks:

  <nickname>!<username>@<hostname>

This patch accepts user names including "@" characters, saves the
unmodified name for authentication but stores only the part in front
of the "@" character as "IRC user name". And the latter is how
ircd2.11, Bahamut, and irc-seven behave as well.

Closes bug #155.

7 years agoMerge branch 'systemd'
Alexander Barton [Sun, 10 Feb 2013 19:43:56 +0000 (20:43 +0100)]
Merge branch 'systemd'

* systemd:
  ngircd.sock: explicitely bind to IPv4 and IPv6 addresses
  Show address and port of sockets passed-in by systemd(8)
  Check type of sockets passed-in by systemd(8)
  Adjust severity levels of some log messages
  New configuration option "IdleTimeout": exit daemon when idle
  Implement support for systemd(8) "socket activation"
  contrib/README: add more files

7 years agongircd.sock: explicitely bind to IPv4 and IPv6 addresses systemd
Alexander Barton [Sun, 10 Feb 2013 19:37:55 +0000 (20:37 +0100)]
ngircd.sock: explicitely bind to IPv4 and IPv6 addresses

7 years agoShow address and port of sockets passed-in by systemd(8)
Alexander Barton [Sun, 10 Feb 2013 19:21:35 +0000 (20:21 +0100)]
Show address and port of sockets passed-in by systemd(8)

7 years agoCheck type of sockets passed-in by systemd(8)
Alexander Barton [Sun, 10 Feb 2013 19:20:58 +0000 (20:20 +0100)]
Check type of sockets passed-in by systemd(8)

This patch makes sure that ngIRCd doesn't try to handle sockets of
unsupported types, for example of AF_INET6 sockets when ngIRCd isn't
compiled with support for IPv6 ...

7 years agoAdjust severity levels of some log messages
Alexander Barton [Sun, 10 Feb 2013 19:18:44 +0000 (20:18 +0100)]
Adjust severity levels of some log messages

7 years agoCommands.txt: spelling fixes ...
Alexander Barton [Sat, 9 Feb 2013 23:35:03 +0000 (00:35 +0100)]
Commands.txt: spelling fixes ...

7 years agoMerge branch 'HelpText'
Alexander Barton [Sat, 9 Feb 2013 23:29:30 +0000 (00:29 +0100)]
Merge branch 'HelpText'

* HelpText: (22 commits)
  Commands.txt: Update description of the "USERS" command
  Commands.txt: Update description of the "SUMMON" command
  Commands.txt: Update description of the "SERVLIST" command
  Commands.txt: Update description of the "WHOWAS" command
  Commands.txt: Update description of the "WHOIS" command
  Commands.txt: Update description of the "WHO" command
  Commands.txt: Update description of the "VERSION" command
  Commands.txt: Update description of the "USERHOST" command
  Commands.txt: Update description of the "TIME" command
  Commands.txt: Update description of the "STATS" command
  Commands.txt: Update description of the "NAMES" command
  Commands.txt: Update description of the "MOTD" command
  Commands.txt: Update description of the "LUSERS" command
  Commands.txt: Update description of the "LINKS" command
  Commands.txt: Update description of the "ISON" command
  Commands.txt: Update description of the "INFO" command
  Commands.txt: Update description of the "ADMIN" command
  Commands.txt: Add description for the "CHARCONV" command
  Commands.txt: Add description for the "CAP" command
  Commands.txt: Import descriptions from "rbose/command_help"
  ...