ngircd-alex.git
14 years agoUpdated debian changelog.
Alexander Barton [Wed, 2 Aug 2006 09:53:54 +0000 (09:53 +0000)]
Updated debian changelog.

14 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.

14 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.

14 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.

14 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.

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

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

14 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.

14 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.

14 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.

14 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.

14 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.

14 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.

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

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

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

14 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

14 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.

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

14 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.

14 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".

14 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 :-)

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

14 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

14 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.

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

14 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

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

14 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.

14 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

14 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.

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

14 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()

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

14 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 ... :-/

14 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

14 years agochanged connection structure to array-api
Florian Westphal [Thu, 16 Feb 2006 19:21:57 +0000 (19:21 +0000)]
changed connection structure to array-api

14 years agonew Function: LogDebug()
Florian Westphal [Wed, 8 Feb 2006 17:33:28 +0000 (17:33 +0000)]
new Function: LogDebug()

14 years agoremoved Resolve_SUCCESS() Macro and Res_Stat->sucess boolean (no longer used/needed)
Florian Westphal [Wed, 8 Feb 2006 15:24:10 +0000 (15:24 +0000)]
removed Resolve_SUCCESS() Macro and Res_Stat->sucess boolean (no longer used/needed)

14 years agoMake connid same as connection fd.
Florian Westphal [Wed, 8 Feb 2006 15:20:21 +0000 (15:20 +0000)]
Make connid same as connection fd.

14 years agoremoved obsolete "int Conn_MaxFD"
Florian Westphal [Thu, 2 Feb 2006 21:00:21 +0000 (21:00 +0000)]
removed obsolete "int Conn_MaxFD"

14 years agosimplify IRC_Show_MOTD()
Florian Westphal [Fri, 27 Jan 2006 17:19:58 +0000 (17:19 +0000)]
simplify IRC_Show_MOTD()

14 years agoEnhanced documentation. Use "default" port 6667 in the example for server links.
Alexander Barton [Mon, 9 Jan 2006 11:03:35 +0000 (11:03 +0000)]
Enhanced documentation. Use "default" port 6667 in the example for server links.

14 years agoAdded some documentation for --with-XXX options of the configure script.
Alexander Barton [Fri, 30 Dec 2005 22:43:23 +0000 (22:43 +0000)]
Added some documentation for --with-XXX options of the configure script.

14 years agoAdded test if the stress-test expect script itself completes without errors.
Alexander Barton [Fri, 30 Dec 2005 22:13:21 +0000 (22:13 +0000)]
Added test if the stress-test expect script itself completes without errors.

14 years agoModified expect script to work with servers having IDENT support.
Alexander Barton [Fri, 30 Dec 2005 22:12:28 +0000 (22:12 +0000)]
Modified expect script to work with servers having IDENT support.

14 years agoadd FAQ entry about epoll(): Function not implemented error
Florian Westphal [Fri, 9 Dec 2005 21:14:56 +0000 (21:14 +0000)]
add FAQ entry about epoll(): Function not implemented error

14 years agoFix Bugzilla #64 -- ngicrd did not reconnect to other servers after failed forward...
Florian Westphal [Fri, 9 Dec 2005 09:26:55 +0000 (09:26 +0000)]
Fix Bugzilla #64 -- ngicrd did not reconnect to other servers after failed forward dns lookup.

14 years agoMake clear that "IO backend: select" is not a request but a C API function.
Alexander Barton [Tue, 6 Dec 2005 22:37:50 +0000 (22:37 +0000)]
Make clear that "IO backend: select" is not a request but a C API function.

14 years agoDon't remove doc/src on "make distclean".
Alexander Barton [Tue, 29 Nov 2005 20:59:57 +0000 (20:59 +0000)]
Don't remove doc/src on "make distclean".

14 years agoMinor whitespace fixes.
Alexander Barton [Mon, 21 Nov 2005 16:31:30 +0000 (16:31 +0000)]
Minor whitespace fixes.

14 years agoRemove direct call of Conf_UnsetServer(): it's already indirectly called
Alexander Barton [Mon, 21 Nov 2005 15:06:37 +0000 (15:06 +0000)]
Remove direct call of Conf_UnsetServer(): it's already indirectly called
by Conn_Close() a few lines above.

15 years agoAdjusted ChangeLog for ngIRCd release 0.9.2.
Alexander Barton [Mon, 31 Oct 2005 21:40:17 +0000 (21:40 +0000)]
Adjusted ChangeLog for ngIRCd release 0.9.2.

15 years agoUpdated autoconf helper scripts.
Alexander Barton [Sat, 15 Oct 2005 13:16:52 +0000 (13:16 +0000)]
Updated autoconf helper scripts.

15 years agoChanged Handle_Write() to not close sockets itself but to call Conn_Close.
Alexander Barton [Tue, 11 Oct 2005 19:29:23 +0000 (19:29 +0000)]
Changed Handle_Write() to not close sockets itself but to call Conn_Close.

15 years agogcc 4: "warning: declaration of 'dup' shadows a global declaration".
Alexander Barton [Sat, 24 Sep 2005 17:06:54 +0000 (17:06 +0000)]
gcc 4: "warning: declaration of 'dup' shadows a global declaration".

15 years agoavoid 2nd time() call in Check_Servers(), improve comments
Florian Westphal [Sat, 24 Sep 2005 02:48:46 +0000 (02:48 +0000)]
avoid 2nd time() call in Check_Servers(), improve comments

15 years agouse io_close instead of plain close in Conn_ExitListeners()
Florian Westphal [Sat, 24 Sep 2005 02:20:00 +0000 (02:20 +0000)]
use io_close instead of plain close in Conn_ExitListeners()

15 years agomerge new resolver code
Florian Westphal [Mon, 12 Sep 2005 19:10:20 +0000 (19:10 +0000)]
merge new resolver code

15 years agoMinimal changes (needed for merging resolver changes)
Florian Westphal [Sun, 11 Sep 2005 11:42:48 +0000 (11:42 +0000)]
Minimal changes (needed for merging resolver changes)

15 years agoMostly formatting; changes needed for SSL merge
Florian Westphal [Sat, 10 Sep 2005 23:42:12 +0000 (23:42 +0000)]
Mostly formatting; changes needed for SSL merge

15 years agoHandle_Write(): Report write attempts on closed sockets when in debug mode.
Florian Westphal [Mon, 5 Sep 2005 09:10:08 +0000 (09:10 +0000)]
Handle_Write(): Report write attempts on closed sockets when in debug mode.

15 years agoRemoved obsolete debug message.
Alexander Barton [Mon, 5 Sep 2005 08:11:11 +0000 (08:11 +0000)]
Removed obsolete debug message.

15 years agoSet one second penalty on unknown commands.
Alexander Barton [Sun, 4 Sep 2005 23:42:24 +0000 (23:42 +0000)]
Set one second penalty on unknown commands.

15 years agoAdd debug code to Conn_SetPenalty().
Alexander Barton [Sun, 4 Sep 2005 23:38:32 +0000 (23:38 +0000)]
Add debug code to Conn_SetPenalty().

15 years agoio_close(): explicitly remove fd from epoll set
Florian Westphal [Sun, 4 Sep 2005 13:38:59 +0000 (13:38 +0000)]
io_close(): explicitly remove fd from epoll set

15 years agoUpdated build configurations.
Alexander Barton [Sat, 3 Sep 2005 15:13:14 +0000 (15:13 +0000)]
Updated build configurations.

15 years agoUpdated XCode project files to XCode version 2.1.
Alexander Barton [Sat, 3 Sep 2005 14:57:27 +0000 (14:57 +0000)]
Updated XCode project files to XCode version 2.1.

15 years agoWait for DNS reverse lookup (and ident request) before writing results to pipe.
Florian Westphal [Sat, 3 Sep 2005 11:17:16 +0000 (11:17 +0000)]
Wait for DNS reverse lookup (and ident request) before writing results to pipe.

15 years agoUpdated Changelog: fixed file descriptor leak in resolver code.
Alexander Barton [Fri, 2 Sep 2005 22:12:43 +0000 (22:12 +0000)]
Updated Changelog: fixed file descriptor leak in resolver code.

15 years agofix fd leak (happens on failure of fork() ).
Florian Westphal [Fri, 2 Sep 2005 21:47:30 +0000 (21:47 +0000)]
fix fd leak (happens on failure of fork() ).

15 years agoUpdated copyright notice.
Alexander Barton [Fri, 2 Sep 2005 17:12:58 +0000 (17:12 +0000)]
Updated copyright notice.

15 years agosmall formatting change
Florian Westphal [Fri, 2 Sep 2005 17:01:23 +0000 (17:01 +0000)]
small formatting change

15 years agoJOIN now supports more than one channel key at a time.
Alexander Barton [Fri, 2 Sep 2005 15:46:49 +0000 (15:46 +0000)]
JOIN now supports more than one channel key at a time.

15 years agoMention ':' MyPassword restriction in man page.
Florian Westphal [Fri, 2 Sep 2005 14:38:59 +0000 (14:38 +0000)]
Mention ':' MyPassword restriction in man page.

15 years agoComplain if MyPassword starts with ':'. (Reported by Ben Korvemaker)
Florian Westphal [Fri, 2 Sep 2005 13:58:52 +0000 (13:58 +0000)]
Complain if MyPassword starts with ':'. (Reported by Ben Korvemaker)

15 years agoreformatted Handle_SERVER()
Florian Westphal [Fri, 2 Sep 2005 13:50:52 +0000 (13:50 +0000)]
reformatted Handle_SERVER()

15 years agoCleaned up some code, comments and log/debug messages.
Alexander Barton [Fri, 2 Sep 2005 13:28:30 +0000 (13:28 +0000)]
Cleaned up some code, comments and log/debug messages.

15 years agoImplementec numeric "333": Time and user name who set a channel topic.
Alexander Barton [Fri, 2 Sep 2005 12:50:25 +0000 (12:50 +0000)]
Implementec numeric "333": Time and user name who set a channel topic.

15 years agoAdd warning about leading : in passwords. (thx Ben Korvemaker for pointing this out)
Florian Westphal [Thu, 1 Sep 2005 18:16:29 +0000 (18:16 +0000)]
Add warning about leading : in passwords. (thx Ben Korvemaker for pointing this out)

15 years agoMake PONG handler compatible with ngIRCd <= 0.9 ("make it more relaxed").
Alexander Barton [Thu, 1 Sep 2005 10:51:24 +0000 (10:51 +0000)]
Make PONG handler compatible with ngIRCd <= 0.9 ("make it more relaxed").

15 years agoreformatted a few lines.
Florian Westphal [Tue, 30 Aug 2005 22:08:00 +0000 (22:08 +0000)]
reformatted a few lines.

15 years agocheck if gcc supports -fstack-protector
Florian Westphal [Tue, 30 Aug 2005 20:59:30 +0000 (20:59 +0000)]
check if gcc supports -fstack-protector

15 years agouse size_t for array length variables
Florian Westphal [Tue, 30 Aug 2005 13:38:16 +0000 (13:38 +0000)]
use size_t for array length variables

15 years agouse size_t instead of unsigned int.
Florian Westphal [Tue, 30 Aug 2005 13:36:32 +0000 (13:36 +0000)]
use size_t instead of unsigned int.

15 years agolast cleanup accidentally broke kqueue backend.
Florian Westphal [Mon, 29 Aug 2005 13:58:54 +0000 (13:58 +0000)]
last cleanup accidentally broke kqueue backend.

15 years agoAdded prefix to connection statistic NOTICE.
Alexander Barton [Mon, 29 Aug 2005 11:11:15 +0000 (11:11 +0000)]
Added prefix to connection statistic NOTICE.

15 years agoFixed server NOTICEs to users with "s" mode ("server messages").
Alexander Barton [Mon, 29 Aug 2005 10:58:00 +0000 (10:58 +0000)]
Fixed server NOTICEs to users with "s" mode ("server messages").

15 years agoremove unneeded variable "bool action"
Florian Westphal [Sun, 28 Aug 2005 16:51:20 +0000 (16:51 +0000)]
remove unneeded variable "bool action"