ngircd-alex.git
13 years agoAdded LSB compliant header.
Alexander Barton [Tue, 26 Dec 2006 14:43:46 +0000 (14:43 +0000)]
Added LSB compliant header.

13 years agoFixed typo in #ifdef which tests if this header is already included or not.
Alexander Barton [Mon, 25 Dec 2006 22:53:52 +0000 (22:53 +0000)]
Fixed typo in #ifdef which tests if this header is already included or not.

13 years agoCustomize manual pages to reflect the actual installation location of files.
Alexander Barton [Mon, 25 Dec 2006 16:13:26 +0000 (16:13 +0000)]
Customize manual pages to reflect the actual installation location of files.

13 years agoregister io handler before creating new local client structure
Florian Westphal [Mon, 25 Dec 2006 01:11:12 +0000 (01:11 +0000)]
register io handler before creating new local client structure

13 years agorevert to last good revision again 8-/
Florian Westphal [Sun, 17 Dec 2006 23:04:45 +0000 (23:04 +0000)]
revert to last good revision again 8-/

13 years agodo not call Conn_Close when io_event_create fails
Florian Westphal [Sun, 17 Dec 2006 22:55:07 +0000 (22:55 +0000)]
do not call Conn_Close when io_event_create fails

13 years agofix possibe buffer-off-by one
Florian Westphal [Sun, 17 Dec 2006 22:52:43 +0000 (22:52 +0000)]
fix possibe buffer-off-by one

13 years agodon't call Resolve_Shutdown() when io_event_create fails
Florian Westphal [Sun, 17 Dec 2006 22:50:51 +0000 (22:50 +0000)]
don't call Resolve_Shutdown() when io_event_create fails

13 years agoUpdated ChangeLog/NEWS to reflect release of ngIRCd 0.10.1.
Alexander Barton [Sun, 17 Dec 2006 21:00:30 +0000 (21:00 +0000)]
Updated ChangeLog/NEWS to reflect release of ngIRCd 0.10.1.

13 years agoremoved errouneous FD_SETSIZE limit when not using select()
Florian Westphal [Sat, 16 Dec 2006 22:48:34 +0000 (22:48 +0000)]
removed errouneous FD_SETSIZE limit when not using select()

13 years agoadd PredefChannelsOnly option to man page
Florian Westphal [Mon, 11 Dec 2006 22:07:09 +0000 (22:07 +0000)]
add PredefChannelsOnly option to man page

13 years agominor cleanup
Florian Westphal [Thu, 7 Dec 2006 22:24:14 +0000 (22:24 +0000)]
minor cleanup

13 years agoremove unused function Channel_PCount
Florian Westphal [Thu, 7 Dec 2006 22:23:39 +0000 (22:23 +0000)]
remove unused function Channel_PCount

13 years agomoved invite/ban lists to channel structure
Florian Westphal [Thu, 7 Dec 2006 17:57:20 +0000 (17:57 +0000)]
moved invite/ban lists to channel structure

13 years agofix RPL_LOCALUSERS_MSG (%ld -> %lu)
Florian Westphal [Sat, 2 Dec 2006 14:24:36 +0000 (14:24 +0000)]
fix RPL_LOCALUSERS_MSG (%ld -> %lu)

13 years agoLog(LOG_DEBUG, .. -> LogDebug()
Florian Westphal [Sat, 2 Dec 2006 14:10:48 +0000 (14:10 +0000)]
Log(LOG_DEBUG, .. -> LogDebug()

13 years agopredefined channels MUST start with '#', but this is not very intuitive,
Florian Westphal [Mon, 20 Nov 2006 19:32:07 +0000 (19:32 +0000)]
predefined channels MUST start with '#', but this is not very intuitive,
since # is also used as a comment character in ngircd.conf. Thus
we prefix the name with '#' if it is missing.

13 years agoFixed validation of server names containing digits.
Alexander Barton [Fri, 10 Nov 2006 10:05:00 +0000 (10:05 +0000)]
Fixed validation of server names containing digits.

13 years agoNew configuration option "PredefChannelsOnly": if set, make
Florian Westphal [Sun, 5 Nov 2006 13:03:46 +0000 (13:03 +0000)]
New configuration option "PredefChannelsOnly": if set, make
all JOINs to-non existants channel return ERR_BANNEDFROMCHAN_MSG,
restricting users to those channels defined in the config file.

13 years agoAdded OpenBSD/ppc to list of tested platforms.
Alexander Barton [Sun, 8 Oct 2006 14:09:16 +0000 (14:09 +0000)]
Added OpenBSD/ppc to list of tested platforms.

13 years ago-Whitespace Damage; Client_OperCount(), Client_UnknownCount(), Client_MyServerCount...
Florian Westphal [Sat, 7 Oct 2006 10:40:52 +0000 (10:40 +0000)]
-Whitespace Damage; Client_OperCount(), Client_UnknownCount(), Client_MyServerCount() return unsigned long

13 years agochannel maxusers now unsigned long
Florian Westphal [Fri, 6 Oct 2006 21:32:58 +0000 (21:32 +0000)]
channel maxusers now unsigned long

13 years agoadd const qualifier to Hash() and Matche() Arguments
Florian Westphal [Fri, 6 Oct 2006 21:23:47 +0000 (21:23 +0000)]
add const qualifier to Hash() and Matche() Arguments

13 years agoClient_IsValidNick: no need to strcpy.
Florian Westphal [Fri, 6 Oct 2006 19:57:56 +0000 (19:57 +0000)]
Client_IsValidNick: no need to strcpy.

13 years agoChannel_Join was severely broken.
Florian Westphal [Thu, 5 Oct 2006 18:26:54 +0000 (18:26 +0000)]
Channel_Join was severely broken.

13 years agoUpdate info text of local server after re-reading configuration.
Alexander Barton [Tue, 3 Oct 2006 10:59:40 +0000 (10:59 +0000)]
Update info text of local server after re-reading configuration.

13 years agoRemoved an unused variable -- but where did it come from!? Strange ...
Alexander Barton [Tue, 3 Oct 2006 10:28:38 +0000 (10:28 +0000)]
Removed an unused variable -- but where did it come from!? Strange ...

13 years agoadd test for strcspn.
Florian Westphal [Mon, 2 Oct 2006 21:57:13 +0000 (21:57 +0000)]
add test for strcspn.

13 years agocleaned up Channel_IsValidName (now uses strcspn())
Florian Westphal [Mon, 2 Oct 2006 21:55:49 +0000 (21:55 +0000)]
cleaned up Channel_IsValidName (now uses strcspn())

13 years agoChanged Numerics 265 and 266 to follow ircd 2.11.x "standards".
Alexander Barton [Sun, 1 Oct 2006 19:13:32 +0000 (19:13 +0000)]
Changed Numerics 265 and 266 to follow ircd 2.11.x "standards".

13 years agoAllow PASS syntax defined in RFC 1459 for server links, too.
Alexander Barton [Sun, 1 Oct 2006 19:05:00 +0000 (19:05 +0000)]
Allow PASS syntax defined in RFC 1459 for server links, too.
Removed client status CLIENT_GOTPASSSERVER.

13 years agoEnhanced ISUPPORT message (numeric 005).
Alexander Barton [Sun, 1 Oct 2006 19:03:05 +0000 (19:03 +0000)]
Enhanced ISUPPORT message (numeric 005).

13 years agoUpdated files from ngIRCd 0.10.0.
Alexander Barton [Sun, 1 Oct 2006 17:23:36 +0000 (17:23 +0000)]
Updated files from ngIRCd 0.10.0.

13 years agoarray_get: no need to multiply again. remove unneeded checks. remove array_free_wipe().
Florian Westphal [Sat, 30 Sep 2006 21:49:46 +0000 (21:49 +0000)]
array_get: no need to multiply again. remove unneeded checks. remove array_free_wipe().

13 years agoio_close_poll()s closing brace mysteriously disappeared... fixed.
Florian Westphal [Tue, 19 Sep 2006 18:21:30 +0000 (18:21 +0000)]
io_close_poll()s closing brace mysteriously disappeared... fixed.

13 years agoAdded support for the /dev/poll i/o interface.
Florian Westphal [Sun, 17 Sep 2006 10:41:06 +0000 (10:41 +0000)]
Added support for the /dev/poll i/o interface.

13 years agosimplify io_library_init*
Florian Westphal [Sat, 16 Sep 2006 16:47:27 +0000 (16:47 +0000)]
simplify io_library_init*

13 years agoadd support for the poll() interface
Florian Westphal [Sat, 16 Sep 2006 15:00:09 +0000 (15:00 +0000)]
add support for the poll() interface

13 years agocleanup
Florian Westphal [Sat, 16 Sep 2006 14:49:26 +0000 (14:49 +0000)]
cleanup

13 years agofix embarassing fileptr leak
Florian Westphal [Sat, 16 Sep 2006 12:22:09 +0000 (12:22 +0000)]
fix embarassing fileptr leak

13 years agoUpdated autoconf helper scripts to version as of 2006-07-02.
Alexander Barton [Mon, 11 Sep 2006 18:19:29 +0000 (18:19 +0000)]
Updated autoconf helper scripts to version as of 2006-07-02.

13 years agoonly test for stack smashing protector if we are using gcc;
Florian Westphal [Sat, 9 Sep 2006 17:07:39 +0000 (17:07 +0000)]
only test for stack smashing protector if we are using gcc;
use -fstack-protector-all for the test to make sure the guard variable is added.

13 years agoUpdated documentation.
Alexander Barton [Tue, 29 Aug 2006 23:59:35 +0000 (23:59 +0000)]
Updated documentation.

13 years agofix gcc 4.1 -fstack-protector detection.
Florian Westphal [Sun, 13 Aug 2006 18:11:18 +0000 (18:11 +0000)]
fix gcc 4.1 -fstack-protector detection.

13 years agos/Log(LOG_DEBUG/LogDebug(/ , translated comments, etc.
Florian Westphal [Sat, 12 Aug 2006 11:58:21 +0000 (11:58 +0000)]
s/Log(LOG_DEBUG/LogDebug(/ , translated comments, etc.

13 years ago-whitespace damage
Florian Westphal [Sat, 12 Aug 2006 11:56:24 +0000 (11:56 +0000)]
-whitespace damage

13 years agosimplify Resolve_Read().
Florian Westphal [Sat, 12 Aug 2006 11:54:23 +0000 (11:54 +0000)]
simplify Resolve_Read().

13 years agoUpdated platform list once more ...
Alexander Barton [Mon, 7 Aug 2006 07:45:45 +0000 (07:45 +0000)]
Updated platform list once more ...

13 years agoUpdated platform list.
Alexander Barton [Mon, 7 Aug 2006 07:29:30 +0000 (07:29 +0000)]
Updated platform list.

13 years agoif compiling without -DDEBUG, make LogDebug 'static inline' so gcc optimizes it away.
Florian Westphal [Sat, 5 Aug 2006 09:16:21 +0000 (09:16 +0000)]
if compiling without -DDEBUG, make LogDebug 'static inline' so gcc optimizes it away.

13 years agocheck if compiler supports inline keyword.
Florian Westphal [Sat, 5 Aug 2006 08:58:16 +0000 (08:58 +0000)]
check if compiler supports inline keyword.

13 years agoAdded support for Solaris 11.
Alexander Barton [Sat, 5 Aug 2006 00:15:28 +0000 (00:15 +0000)]
Added support for Solaris 11.

13 years agoSynchronized documentation with branch-0-10-x ...
Alexander Barton [Thu, 3 Aug 2006 14:37:29 +0000 (14:37 +0000)]
Synchronized documentation with branch-0-10-x ...

13 years agoUpdated debian changelog.
Alexander Barton [Wed, 2 Aug 2006 09:53:54 +0000 (09:53 +0000)]
Updated debian changelog.

13 years agoDon't assert() when a pre-defined channel has no topic.
Alexander Barton [Mon, 24 Jul 2006 22:54:09 +0000 (22:54 +0000)]
Don't assert() when a pre-defined channel has no topic.

13 years agoFlag the format parameter of LogDebug() as "unused" when not compiling with
Alexander Barton [Sun, 23 Jul 2006 23:23:45 +0000 (23:23 +0000)]
Flag the format parameter of LogDebug() as "unused" when not compiling with
debug code to avoid gcc warnings. Added some documentation comments.

13 years agoRemoved unused variable "ret" when using the select() API.
Alexander Barton [Sun, 23 Jul 2006 23:11:44 +0000 (23:11 +0000)]
Removed unused variable "ret" when using the select() API.

13 years agoRemoved (theoretically) division by zero; reformated some code.
Alexander Barton [Sun, 23 Jul 2006 23:05:20 +0000 (23:05 +0000)]
Removed (theoretically) division by zero; reformated some code.

13 years agoValidate "ServerName" variable.
Alexander Barton [Sun, 23 Jul 2006 16:42:45 +0000 (16:42 +0000)]
Validate "ServerName" variable.

13 years agoUpdated documentation.
Alexander Barton [Sun, 23 Jul 2006 15:47:26 +0000 (15:47 +0000)]
Updated documentation.

13 years agoAllow DIE to send a message to all locally connected clients. Closes bug #48.
Alexander Barton [Sun, 23 Jul 2006 15:43:18 +0000 (15:43 +0000)]
Allow DIE to send a message to all locally connected clients. Closes bug #48.

13 years ago"Enhanced" debug message for Handle_Write(), only print when data in buffer.
Alexander Barton [Sun, 23 Jul 2006 15:22:56 +0000 (15:22 +0000)]
"Enhanced" debug message for Handle_Write(), only print when data in buffer.

13 years agoOutput some debug messages only if DEBUG_ZIP is #define'd.
Alexander Barton [Sun, 23 Jul 2006 15:19:20 +0000 (15:19 +0000)]
Output some debug messages only if DEBUG_ZIP is #define'd.

13 years agoDon't include conn.h, conn-func.h is enough.
Alexander Barton [Sun, 23 Jul 2006 14:55:40 +0000 (14:55 +0000)]
Don't include conn.h, conn-func.h is enough.

13 years agoUpdated CVS URLs; enhanced documentation a little bit.
Alexander Barton [Sun, 23 Jul 2006 12:43:15 +0000 (12:43 +0000)]
Updated CVS URLs; enhanced documentation a little bit.

13 years agoUpdated some patch names on Arthur.
Alexander Barton [Sun, 23 Jul 2006 12:19:57 +0000 (12:19 +0000)]
Updated some patch names on Arthur.

13 years agoUpdated copyright notice ;-)
Alexander Barton [Sun, 23 Jul 2006 12:07:33 +0000 (12:07 +0000)]
Updated copyright notice ;-)

13 years agoUpdated autoconf helper scripts.
Alexander Barton [Sun, 23 Jul 2006 12:03:14 +0000 (12:03 +0000)]
Updated autoconf helper scripts.

13 years agoAdded ngindent.
Alexander Barton [Sun, 23 Jul 2006 11:34:32 +0000 (11:34 +0000)]
Added ngindent.

13 years agoremove fd from io_event structure
Florian Westphal [Wed, 12 Jul 2006 19:27:12 +0000 (19:27 +0000)]
remove fd from io_event structure

13 years agoALIGN_XXX( v ) macros now leave v alone if it was already aligned.
Florian Westphal [Sat, 1 Jul 2006 22:11:48 +0000 (22:11 +0000)]
ALIGN_XXX( v ) macros now leave v alone if it was already aligned.

13 years agoSorted channel modes alphabetically.
Alexander Barton [Thu, 15 Jun 2006 20:28:15 +0000 (20:28 +0000)]
Sorted channel modes alphabetically.

13 years agoDetect the Avahi "howl-compatibility" as well as Howl itself.
Alexander Barton [Wed, 17 May 2006 16:44:14 +0000 (16:44 +0000)]
Detect the Avahi "howl-compatibility" as well as Howl itself.

13 years agoThe third parameter of bind() is of type "socklen_t", not "int".
Alexander Barton [Fri, 12 May 2006 11:53:04 +0000 (11:53 +0000)]
The third parameter of bind() is of type "socklen_t", not "int".

13 years agoUse some more specific data types (e. g. pid_t vs. int), make "SPLint" happy :-)
Alexander Barton [Wed, 10 May 2006 21:24:01 +0000 (21:24 +0000)]
Use some more specific data types (e. g. pid_t vs. int), make "SPLint" happy :-)

13 years agomake splint complain less...
Florian Westphal [Wed, 10 May 2006 17:33:36 +0000 (17:33 +0000)]
make splint complain less...

13 years agodisabled most (rather annoying) debug messages using DEBUG_ARRAY / DEBUG_IO defines
Florian Westphal [Tue, 9 May 2006 17:02:40 +0000 (17:02 +0000)]
disabled most (rather annoying) debug messages using DEBUG_ARRAY / DEBUG_IO defines

13 years agoRemoved kqueue bug fix (never released), rephrased some internal changes,
Alexander Barton [Tue, 9 May 2006 15:45:30 +0000 (15:45 +0000)]
Removed kqueue bug fix (never released), rephrased some internal changes,
and added "time shift" bug fix.

13 years agoHandle time shifts backwards gracefully.
Alexander Barton [Tue, 9 May 2006 14:49:08 +0000 (14:49 +0000)]
Handle time shifts backwards gracefully.

13 years agokqueue now tested on NetBSD3.0, FreeBSD6 and Darwin7.9.0
Florian Westphal [Sun, 7 May 2006 11:07:13 +0000 (11:07 +0000)]
kqueue now tested on NetBSD3.0, FreeBSD6 and Darwin7.9.0

13 years agokqueue fix.
Florian Westphal [Sun, 7 May 2006 10:55:43 +0000 (10:55 +0000)]
kqueue fix.

13 years agokqueue support was completely broken; seemed to work on FreeBSD just because of sheer...
Florian Westphal [Sun, 7 May 2006 10:54:42 +0000 (10:54 +0000)]
kqueue support was completely broken; seemed to work on FreeBSD just because of sheer luck.

13 years agominor cleanup, removed unneeded check in safemult_sizet
Florian Westphal [Sun, 7 May 2006 10:52:47 +0000 (10:52 +0000)]
minor cleanup, removed unneeded check in safemult_sizet

13 years agoSend invite and ban lists only once and not repeatedly for every channel.
Alexander Barton [Sun, 30 Apr 2006 21:31:43 +0000 (21:31 +0000)]
Send invite and ban lists only once and not repeatedly for every channel.

13 years agoFix Connection Pool resizing.
Florian Westphal [Sat, 29 Apr 2006 16:19:46 +0000 (16:19 +0000)]
Fix Connection Pool resizing.

13 years agoClient_GetFromConn() removed and replaced with new function Conn_GetClient()
Florian Westphal [Sun, 23 Apr 2006 10:37:27 +0000 (10:37 +0000)]
Client_GetFromConn() removed and replaced with new function Conn_GetClient()

13 years agochanges some comments, minor cleanup
Florian Westphal [Sun, 23 Apr 2006 10:33:37 +0000 (10:33 +0000)]
changes some comments, minor cleanup

13 years agoFix up ngt_TrimStr() once more ... :-/
Alexander Barton [Sun, 9 Apr 2006 12:53:07 +0000 (12:53 +0000)]
Fix up ngt_TrimStr() once more ... :-/

13 years agoMostly whitespace fixes.
Alexander Barton [Sun, 9 Apr 2006 12:27:23 +0000 (12:27 +0000)]
Mostly whitespace fixes.

14 years agoAdded maintainer-clean-local target to purge generated Makefiles.
Alexander Barton [Sat, 8 Apr 2006 16:35:03 +0000 (16:35 +0000)]
Added maintainer-clean-local target to purge generated Makefiles.

14 years agofix ngt_TrimStr(), fix format string
Florian Westphal [Fri, 24 Mar 2006 23:25:38 +0000 (23:25 +0000)]
fix ngt_TrimStr(), fix format string

14 years agongt_TrimStr(): code cleanup.
Alexander Barton [Wed, 22 Mar 2006 08:05:10 +0000 (08:05 +0000)]
ngt_TrimStr(): code cleanup.

14 years agouse strlcat return value; don't call time() repeatedly.
Florian Westphal [Sat, 18 Mar 2006 22:27:09 +0000 (22:27 +0000)]
use strlcat return value; don't call time() repeatedly.

14 years agocorrected return value
Florian Westphal [Thu, 16 Mar 2006 20:14:16 +0000 (20:14 +0000)]
corrected return value

14 years agoremoved silly if (foo) { if (foo){ }} statement
Florian Westphal [Thu, 16 Mar 2006 19:56:34 +0000 (19:56 +0000)]
removed silly if (foo) { if (foo){ }} statement

14 years agos/gehoert//
Florian Westphal [Sat, 11 Mar 2006 10:43:49 +0000 (10:43 +0000)]
s/gehoert//

14 years agoClient_RegisterWhowas(): call time() only once
Florian Westphal [Sat, 11 Mar 2006 10:33:30 +0000 (10:33 +0000)]
Client_RegisterWhowas(): call time() only once

14 years agoDon't use "awk" directly, instead use $(AWK) variable.
Alexander Barton [Sat, 11 Mar 2006 01:48:50 +0000 (01:48 +0000)]
Don't use "awk" directly, instead use $(AWK) variable.

14 years agoMoved now local prototype of Client_New() to C file, renamed it to
Alexander Barton [Sat, 11 Mar 2006 01:37:31 +0000 (01:37 +0000)]
Moved now local prototype of Client_New() to C file, renamed it to
Init_New_Client() and cleaned up some code and comments.

14 years agoClient_New() not used outside client.c -> static
Florian Westphal [Fri, 10 Mar 2006 20:25:29 +0000 (20:25 +0000)]
Client_New() not used outside client.c -> static