Florian Westphal
8adff59223
Remove INT, LONG, BOOLEAN, STATIC, CONST, CHAR datatypes.
...
use stdbool.h / inttypes.h if available.
2005-03-19 18:43:48 +00:00
Florian Westphal
27d93d7d8c
fix Config_Error_NaN prototype (first argument missed "const")
2005-03-19 15:46:38 +00:00
Florian Westphal
8a2ed0a75f
removed unneeded log.h include.
2005-03-19 14:50:59 +00:00
Alexander Barton
1d08d51e2e
New configuration option "OperServerMode".
2005-03-15 16:56:16 +00:00
Alexander Barton
5e929effca
New function New_Res_Stat() to initialize RES_STAT structure.
2005-03-05 12:57:14 +00:00
Alexander Barton
e618041168
Reduce the number of calls of strlen(). Idea by Florin Westphal.
2005-03-05 11:44:01 +00:00
Alexander Barton
e7f8782831
Added missing include of "match.h".
2005-03-03 08:36:19 +00:00
Alexander Barton
4ef172d603
Implemented support for "secret channels" (channel mode "s").
2005-03-02 16:35:10 +00:00
Alexander Barton
490c9d04d7
New configuration option "Mask" for [Operator] sections to limit OPER command.
2005-03-02 16:07:30 +00:00
Alexander Barton
8579b2a1e5
Clean up the mode handling code: remove redundant parts ...
2005-02-27 20:09:44 +00:00
Alexander Barton
3da942e237
Updated to latest strl{cat|cpy} code of rsync:
...
- Make sure that strlcpy() returns the right value when the bufsize is 0.
- Fixed a bug in strlcat() where it would not properly detect a no-change
condition if called with an initial string longer than the specified
size limit (due to an unsigned var's inability to go negative).
Patch by Florian Westphal, <westphal@foo.fh-furtwangen.de>.
2005-02-27 09:29:13 +00:00
Alexander Barton
ec30cd4e5f
Whitespace fixes.
2005-02-11 13:52:37 +00:00
Alexander Barton
f2fbf206b6
Don't play games with FILE* stdin/out/err, only touch "real" descriptors.
2005-02-10 16:55:52 +00:00
Alexander Barton
1fdd5478c6
Renamed NGIRCd_FillVersion() to Fill_Version(); Code cleanups.
2005-02-10 13:09:11 +00:00
Alexander Barton
9537542647
Write "error file" (/tmp/ngircd-XXX.err) only if compiled with debug
...
code ("--enable-debug") and running as daemon process.
2005-02-10 12:49:04 +00:00
Alexander Barton
894cd2cd68
Don't create version information string each time a client connects but
...
insetead on server startup. By Florian Westphal.
2005-02-09 09:52:58 +00:00
Alexander Barton
8edeed8418
Make sure that errno of fopen() isn't overwritten by the logging code.
2005-02-07 19:31:34 +00:00
Alexander Barton
112102b10c
New configuration variable "PidFile", section "[Global]": if defined,
...
the server writes its process ID (PID) to this file. Default: off.
Idea by Florian Westphal, <westphal@foo.fh-furtwangen.de>.
2005-02-04 14:24:20 +00:00
Alexander Barton
85acb82469
Use ngt_TrimLastChr() where useful, by Florian Westphal.
2005-02-04 13:15:38 +00:00
Alexander Barton
51d09fb4f7
Add ngt_TrimLastChr() to header file. By Florian Westphal.
2005-02-04 13:09:03 +00:00
Alexander Barton
8308c170db
Fixed a bug that could case a root exploit when the daemon is compiled
...
to do IDENT lookups and is logging to syslog. Bug discovered by CoKi,
<coki@nosystem.com.ar>, thanks a lot!
(http://www.nosystem.com.ar/advisories/advisory-11.txt )
2005-02-03 09:26:42 +00:00
Alexander Barton
18c92d9de7
We are in the year 2005 now! :-)
2005-01-26 22:03:15 +00:00
Alexander Barton
2440ed080c
Fixed a buffer overflow that could cause the daemon to crash. Bug found
...
by Florian Westphal, <westphal@foo.fh-furtwangen.de>.
2005-01-26 13:23:24 +00:00
Alexander Barton
39f1ddd9d0
New function ngt_TrimLastChr(), prototype by Florian Westphal.
2005-01-25 16:16:48 +00:00
Alexander Barton
34e912d9f2
Fixed a typo in variable name ...
2005-01-24 14:19:04 +00:00
Alexander Barton
44172a8c7f
Fixed a possible buffer underrun when reading the MOTD file. Thanks to
...
Florian Westphal, <westphal@foo.fh-furtwangen.de>.
2005-01-24 14:17:21 +00:00
Alexander Barton
a6d7fb8739
Code cleanups from Florian Westphal, <westphal@foo.fh-furtwangen.de>:
...
wrote functions for common error messages.
2005-01-20 00:13:08 +00:00
Alexander Barton
d16ce5a735
Code cleanups from Florian Westphal, <westphal@foo.fh-furtwangen.de>.
2005-01-20 00:11:49 +00:00
Alexander Barton
a40a026d15
Fixed detection of IRC lines which are too long to send. Detected by
...
Florian Westphal, <westphal@foo.fh-furtwangen.de>.
2005-01-19 23:33:53 +00:00
Alexander Barton
6c5f4beb53
Fixed return values of our own implementation of strlcpy(). The code has
...
been taken from rsync and they fixed it, but we didn't until today :-/
2005-01-18 09:05:37 +00:00
Alexander Barton
26b0ddf200
Translated source code comments.
2005-01-17 13:14:36 +00:00
Alexander Barton
b6690df2be
Raised the maximum length of passwords to 20 characters.
2005-01-17 13:01:34 +00:00
Alexander Barton
429b5f3ec9
Fixed a memory leak when resizing the connection pool and realloc() failed.
...
Now we don't fall back to malloc(), which should be sane anyway.
Patch from Florian Westphal, <westphal@foo.fh-furtwangen.de>.
2005-01-17 11:57:39 +00:00
Alexander Barton
5049c5c694
Don't use a POSIX thread for the Howl "run loop".
2004-12-26 16:48:53 +00:00
Alexander Barton
292879aca4
Added support for the Howl ( http://www.porchdogsoft.com/products/howl/ )
...
Rendezvous API, in addition to the API of Apple (Mac OS X).
2004-12-26 00:14:33 +00:00
Alexander Barton
58736b3902
Fixed indentation and added some more debug code.
2004-12-22 17:37:41 +00:00
Alexander Barton
c1f32e8214
Made ngIRCd compile on HP/UX 10.20 with native HP pre-ANSI C compiler and
...
most probably other older C compilers on other systems.
2004-10-20 13:47:32 +00:00
Alexander Barton
eee2762852
Changed "read buffer" to "receive buffer" as suggested by Goetz.
2004-10-04 23:23:41 +00:00
Alexander Barton
c79fa28a66
Added some missing words: "address" :-)
2004-10-04 23:09:04 +00:00
Alexander Barton
1e692e5890
Fixed wrong variable names in output of "ngircd --configtest".
2004-09-24 18:00:40 +00:00
Alexander Barton
ceafdf109b
Added functions.inc to EXTRA_DIST files.
2004-09-08 09:40:51 +00:00
Alexander Barton
450251f082
Fixed echo without newline for systems not understanding "echo -n"; added
...
new file "functions.inc" for functions usable by all test scripts.
2004-09-06 22:04:06 +00:00
Alexander Barton
ceef058065
Reverted extension of the "make all" target in the test-suite.
2004-09-06 20:35:28 +00:00
Alexander Barton
b04a526a19
Fixed wrong exit code check of "kill -0".
2004-09-06 20:22:30 +00:00
Alexander Barton
8ca1e4d548
If ServerUID is defined change the working directory to the home directory
...
of this user.
2004-09-04 20:28:51 +00:00
Alexander Barton
c5bdd86f96
Enhanced messages and exit codes.
2004-09-04 19:14:46 +00:00
Alexander Barton
aa26e2ef36
Added all test scripts to target "all".
2004-09-04 19:14:02 +00:00
Alexander Barton
9445962237
Changed text "test scripts" to "processes": some versions of expect(1)
...
fork child processes ...
2004-09-04 18:22:42 +00:00
Alexander Barton
6b898b63f0
Removed counting of test processes; don't check running processes by default.
2004-09-04 18:20:16 +00:00
Alexander Barton
f7a4d03ba2
Added detection of flags for ps(1).
2004-09-04 16:14:47 +00:00
Alexander Barton
ade1e2eb7b
Added README, test-loop.sh and wait-tests.sh to EXTRA_DIST files.
2004-09-04 15:46:56 +00:00
Alexander Barton
a9a605de3e
Made stress-server.sh to use wait-tests.sh to limit number of parallel tests.
2004-09-04 15:45:27 +00:00
Alexander Barton
7ec11de523
Two new scripts: test-loop.sh and wait-tests.sh
2004-09-04 15:44:45 +00:00
Alexander Barton
18eb92a72b
Added support for looping and other enhancements.
2004-09-04 14:23:09 +00:00
Alexander Barton
9ddb934784
Set $srcdir if not already set by make.
2004-09-04 14:22:38 +00:00
Alexander Barton
4f8ac179bf
If nick name is already in use, interpret this as "clienst still connected".
2004-09-04 14:22:13 +00:00
Alexander Barton
02b8e51562
Added preliminary README text.
2004-09-04 13:58:31 +00:00
Alexander Barton
364ff7087d
Added cast to integer for Solaris.
2004-06-26 08:50:44 +00:00
Alexander Barton
a49a580a77
Fixed wrong buffer size calculation for resolver results.
2004-05-30 16:25:51 +00:00
Alexander Barton
c23bbe6b65
Fixed a warning message of the compiler when not using IDENT lookups.
2004-05-11 00:53:14 +00:00
Alexander Barton
3012c232eb
Fixed resolver when using IDENT lookups, cleaned up code.
2004-05-11 00:01:11 +00:00
Alexander Barton
26390c60fb
Added PID to all log messages on the console; enhanced logging of
...
resolver sub-processes in debug mode.
2004-05-10 23:57:46 +00:00
Alexander Barton
cdb039672c
Enhanced output of "make lint".
2004-05-09 18:23:35 +00:00
Alexander Barton
7281b8dd4d
New "chroot" feature (from Benjamin Pineau), introducing new configuration
...
variables "ChrootDir" and "MotdPhrase".
2004-05-07 11:19:20 +00:00
Alexander Barton
d433eb3896
Add flag "L" to default IRC+ server flags: synchronize INVITE-
...
and BAN-lists.
2004-04-25 15:46:50 +00:00
Alexander Barton
dd59820051
Synchronize INVITE- and BAN-lists if the peer requests it:
...
server flag "L". And better debug logging.
2004-04-25 15:43:18 +00:00
Alexander Barton
967476799f
Don't send MODE changes when origin is a server and
...
mask is already known.
2004-04-25 15:42:05 +00:00
Alexander Barton
6b1e322865
New functions: Lists_SendInvites(), Lists_IsInviteEntry(),
2004-04-25 15:40:19 +00:00
Alexander Barton
1d8da4b525
Fixed a wrong assert() which could cause the daemon to exit spuriously
...
when closing down connections.
2004-04-25 14:06:11 +00:00
Alexander Barton
292c7bd4c0
Better logging of decompression errors returned by zlib.
2004-04-25 13:55:34 +00:00
Alexander Barton
64d330b726
Fixed handling of already existent entries in invite and ban lists:
...
the attempt to add an already existent entry is no error, it must
be propagated across servers (but not added to the list!).
2004-04-09 21:41:52 +00:00
Alexander Barton
233210b906
Servers other than the destination server didn't clean up the invite
...
list of an "invite-only" channel properly when an INVITE'd user joined.
2004-04-09 20:46:46 +00:00
Alexander Barton
f697923c48
Fixed detection of GNU C version and usability of __attribute__.
2004-03-15 19:26:39 +00:00
Alexander Barton
cb76d96efb
Fixed some warnings of non-gcc-compilers (e. g. original Apple compiler on
...
A/UX): "warning: illegal pointer combination, op =".
2004-03-11 22:16:31 +00:00
Alexander Barton
de1489b39b
Updated tests to reflect last changes to MODE behaviour.
2004-03-10 20:40:06 +00:00
Alexander Barton
56227abc5e
Changed the reply of the MODE command to match the syntax of the original
...
ircd exactly: the unnecessary but missing ":" before the last parameter
has been added.
2004-02-29 16:28:44 +00:00
Alexander Barton
bdaf53e799
Fixed TRACE: don't output "Serv" lines for ourself; display more info.
2004-02-28 02:18:16 +00:00
Alexander Barton
33f4e6763b
Better logging while establishing and shutting down connections.
...
Results of the resolver are now discarded after the client is registered.
2004-02-28 02:01:01 +00:00
Alexander Barton
6667bb6b77
The info text ("real name") of users is set to "-" if none has been
...
specified using the USER command (e. g. "USER user * * :"). Reason:
the original ircd doesn't like empty ones and would KILL such users.
2004-02-04 19:56:04 +00:00
Alexander Barton
b90bedbcb2
Fixed (optional) TCP Wrapper test which was broken and could result in
...
false results. Thanks to Fuminori Tanizaki <tany@mcnet.ad.jp>!
2004-02-03 20:28:30 +00:00
Alexander Barton
bb98fd8c85
The type of service (TOS) of all sockets is set to "interactive" now.
2004-01-25 16:06:34 +00:00
Alexander Barton
e9b0ec9148
Removed some debug code; translated some source code comments.
2004-01-19 21:54:59 +00:00
Alexander Barton
c53903eb3f
Use "__attribute__" only if gcc is at least version 2.7
2004-01-17 03:22:46 +00:00
Alexander Barton
57c7e23622
Added #include for strings.h to fix compiler warnings.
2004-01-17 03:17:49 +00:00
Alexander Barton
cdb694aeb3
Added #include for strings.h and added some casts to remove compiler warnings.
2004-01-17 03:17:00 +00:00
Alexander Barton
6cafa16a56
Fixed order of #include's: time.h moves up! ;-)
2004-01-17 03:15:45 +00:00
Alexander Barton
f645e5b62e
Adjusted copyright notice to include 2004.
2004-01-02 19:23:30 +00:00
Alexander Barton
c9ccb66944
Added new short command line option "-t" as alternative to "--configtest".
2003-12-29 14:53:26 +00:00
Alexander Barton
cb6279f102
Added IDENT option to version string.
2003-12-27 13:09:24 +00:00
Alexander Barton
b79b315dd4
Added optional support for IDENT lookups (configure switch "--with-ident").
2003-12-27 13:01:12 +00:00
Alexander Barton
c40592d2ce
Removed "USE_" prefixes of configuration #defines.
2003-12-26 15:55:07 +00:00
Alexander Barton
05170bc94c
Fixed error messages related to server name configuration; updated
...
sample configuration file. (from 0.7.x)
2003-12-19 14:32:59 +00:00
Alexander Barton
ff2c1efae8
Fixed abort() when inviting users to nonexistent channels.
2003-12-05 11:57:28 +00:00
Alexander Barton
05e2c0f048
Extended version reporting of CVS builds.
2003-12-04 14:05:16 +00:00
Alexander Barton
be79fabcbf
Fixed ban behavior: users which are banned from a channel can't no longer
...
send PRIVMSG's to this channel (fixes Bug #47 ).
2003-11-06 01:07:44 +00:00
Alexander Barton
ec2f16fa16
Fixed test suite: allow more connections ;-)
2003-11-05 23:31:43 +00:00
Alexander Barton
7b6e26628a
Fixed and enhanced penalty handling; changed internal time resoluiton of
...
the server to one second. Code cleanup.
2003-11-05 23:24:48 +00:00
Alexander Barton
2981fe9eb7
New configuration option "MaxConnectionsIP".
2003-11-05 21:41:01 +00:00
Alexander Barton
e33ab90379
New configuration option "Listen" to bind the server to a specific ip.
2003-09-11 12:05:28 +00:00
Alexander Barton
d8f3c2b42b
Suppress misleading error message of diff during make run.
2003-09-09 13:24:41 +00:00
Alexander Barton
b9f16c9635
Fixed typo in debug output.
2003-08-30 20:28:54 +00:00
Alexander Barton
1ed708ef39
Enhanced testsuite, should run under GNU/Hurd now.
2003-08-22 11:31:18 +00:00
Alexander Barton
6647da58fc
NJOIN: Fixed propagation of user channel modes.
2003-07-09 18:45:56 +00:00
Alexander Barton
260b8e5f36
VERSION shows the CVS date if apropriate now.
2003-06-06 20:46:11 +00:00
Alexander Barton
9a009b24da
Fixed a compiler warning related to an unnecessary assert().
2003-06-05 10:48:13 +00:00
Alexander Barton
0424747e95
Made Makefiles more compatible with "make -j<N>".
2003-05-03 16:29:57 +00:00
Alexander Barton
e541da2a8f
"ServerName" is checked better now: a dot (".") is required.
2003-04-29 12:36:09 +00:00
Alexander Barton
e55399c667
The KILL comand verifies and logs more parameters.
2003-04-29 12:19:20 +00:00
Alexander Barton
0e01a37a69
Fixed --configtest: there is no variable "ServerPwd", it's "Password".
2003-04-27 11:46:52 +00:00
Alexander Barton
83194a23a3
The server tried to connect to other servers only once when DNS or socket
...
failures occured.
2003-04-25 16:47:52 +00:00
Alexander Barton
0551f688f6
Made scripts mor portable (run on SunOS 5.6 now).
2003-04-22 19:27:50 +00:00
Alexander Barton
a061668b1a
Added implicit initialisation of "i" in Conf_GetServer to workaround a egcs
...
2.91.66 bug which claims that this valiable could be used uninitialized.
2003-04-21 11:06:07 +00:00
Alexander Barton
489d8c5cd0
Removed unportable %z formater in strftime().
2003-04-21 10:54:30 +00:00
Alexander Barton
daa996f177
Added missing prototype for dummy_snprintf().
2003-04-21 10:53:38 +00:00
Alexander Barton
7deacbaa11
Added missing include for <sys/select.h>.
2003-04-21 10:53:10 +00:00
Alexander Barton
c3dfd63bf3
Fixed up some castings.
2003-04-21 10:52:26 +00:00
Alexander Barton
0b91df05e0
Fixed spelling mistake :-)
2003-04-20 23:09:43 +00:00
Alexander Barton
feafb6cb2e
Don't forward NJOIN's for unknown nick names.
2003-04-20 23:09:26 +00:00
Alexander Barton
016e547daa
Re-corrected test for CVS version.
2003-03-31 19:01:02 +00:00
Alexander Barton
62796722f1
Changed all PACKAGE's to PACKAGE_NAME and all VERSION's to PACKAGE_VERSION.
2003-03-31 15:54:21 +00:00
Alexander Barton
9ab97b29ae
Fixed up bad test during unregistering of services.
2003-03-27 01:24:32 +00:00
Alexander Barton
24df40eca7
Synchronize server connections with server configurations after reloading the configuration.
2003-03-27 01:22:44 +00:00
Alexander Barton
02a22611be
Clean up duplicate servers correctly.
2003-03-27 01:21:38 +00:00
Alexander Barton
59a0fb8cd9
New function Conn_SyncServerStruct().
2003-03-27 01:20:22 +00:00
Alexander Barton
ac4f25e3a7
Enhanced (and fiexd) IRC_TRACE(): now shows operators and correct link uptimes.
2003-03-19 21:16:53 +00:00
Alexander Barton
7646739431
New message constant RPL_TRACEOPERATOR_MSG. Changed RPL_TRACESERVER_MSG.
2003-03-19 21:16:16 +00:00
Alexander Barton
f53455977d
Added #include for stdarg.h when using ower own version of vsnprintf().
2003-03-17 01:12:10 +00:00
Alexander Barton
9ca1f6a988
Removed now obsolete test for A/UX: configure does this job now.
2003-03-17 00:53:52 +00:00
Alexander Barton
e744936d19
New function Simple_Message(). Better error reporting to clients on connect.
2003-03-07 17:16:49 +00:00
Alexander Barton
4a5b3f34a5
Enlarged buffer for version string ;-)
2003-03-07 14:50:13 +00:00
Alexander Barton
439c945d56
Added support for TCP Wrappers.
2003-03-07 14:35:52 +00:00
Alexander Barton
29bd35bc4f
- Added optional support for Rendezvous.
2003-02-23 12:04:05 +00:00
Alexander Barton
f179070113
- New constant RENDEZVOUS_TYPE.
2003-02-23 12:03:39 +00:00
Alexander Barton
aa15257936
- Added new source module "rendezvous".
2003-02-23 12:02:26 +00:00
Alexander Barton
cf4ad8d6f7
- Conn_Close() ignores recursive calls for the same link now.
2003-02-21 19:19:27 +00:00
Alexander Barton
2a3f8cc57d
- new link "option" constant: CONN_ISCLOSING
2003-02-21 19:18:48 +00:00
Alexander Barton
fbec1f1070
The server didn't validate wheather the "target" client of a channel
...
user mode change is a valid channel member or not.
2003-01-21 21:04:16 +00:00
Alexander Barton
e07542a1ff
- Non-members of a channel could crash the server when trying to change its modes. Fixed.
2003-01-17 19:04:19 +00:00
Alexander Barton
9eee0c883b
- Client structures are removed correctly now if an outgoing connection can't be estahlished.
2003-01-15 14:28:59 +00:00
Alexander Barton
939767d502
- New function Client_DestroyNow().
2003-01-15 14:28:25 +00:00
Alexander Barton
2152e37722
- Added "HELP" command.
2003-01-15 13:49:20 +00:00
Alexander Barton
42c4e6c7b1
- Added support for "TRACE" command.
2003-01-13 18:56:30 +00:00
Alexander Barton
0f3e84f415
- new library "libngtool", reorganized code and directory structure therefore.
2003-01-13 12:20:16 +00:00
Alexander Barton
fc1118cb5a
- Enhanced error detection for numerics ("status codes").
2003-01-12 22:18:46 +00:00
Alexander Barton
df00b38a0b
- MODE returns the key and user limit for channel members correctly now.
2003-01-08 23:00:12 +00:00
Alexander Barton
ff98833136
- Kill_Nick() uses an "faked internal KILL" now.
2003-01-08 22:28:12 +00:00
Alexander Barton
1443bc381c
- Enhanced IRC_KILL to get along with Client==Client_ThisServer() for "fake KILLs".
2003-01-08 22:27:13 +00:00
Alexander Barton
9d82635b15
- Fixed IRC_KILL: used wrong connection index.
2003-01-08 22:07:34 +00:00
Alexander Barton
fa80012e71
- Enhanced CHANINFO command for channel keys and user limits.
2003-01-08 22:04:43 +00:00
Alexander Barton
43d9a62473
- Enhanced (and fixed) CHANINFO command (channel keys, user limits).
2003-01-08 22:04:05 +00:00
Alexander Barton
51e1a2e04a
- Changed semantics of Client_SetAway().
2003-01-08 22:03:21 +00:00
Alexander Barton
bb94d18115
- fixed up propagation of modes with arguments between servers.
2003-01-08 17:45:15 +00:00
Alexander Barton
444fdcf905
- Check functions only on systems that support prototypes, elder cpmpilers
...
become confused instead!
2003-01-04 10:40:01 +00:00
Alexander Barton
1bf0426aaf
- Fixed call of tail, should be more portable now ...
2003-01-04 10:39:14 +00:00
Alexander Barton
8139505829
- Link portabtest agains "true" library.
2003-01-03 22:04:14 +00:00
Alexander Barton
c9540015c8
- Added missing PARAMS().
2003-01-03 22:03:51 +00:00
Alexander Barton
8c1df9ef8d
- The server sets a correct away message now when receiving a "MODE +a".
2003-01-02 17:57:09 +00:00
Alexander Barton
c428ac7563
- Renamed RPL_FEATURE_MSG to RPL_ISUPPORT_MSG.
2003-01-02 17:55:28 +00:00
Alexander Barton
e12179aa92
- date in version string conforms to ISO now: YYYY-MM-DD
2003-01-02 16:42:33 +00:00
Alexander Barton
5e3e3ad445
- Adjusted copyright banner to include 2003 :-)
2003-01-01 13:32:23 +00:00
Alexander Barton
e17976a172
- Fixed up command forwarding: only to servers!
...
- Forwarding of WHOIS was broken in some situations.
2003-01-01 13:30:35 +00:00
Alexander Barton
ae6a7e7c0b
- Fixed up command forwarding: only to servers!
2003-01-01 13:29:40 +00:00
Alexander Barton
8dadb17f83
- Changed "once"-server-config-flag into a generic flag.
...
- Changed semantics of "NGIRCd_Passive".
2002-12-31 16:13:29 +00:00
Alexander Barton
281f7583f5
- New functions Conf_EnableServer(), Conf_DisableServer() and Conf_AddServer().
...
- Changed "once"-server-config-flag into a generic flag.
2002-12-31 16:12:50 +00:00
Alexander Barton
a7956f334e
- New command DISCONNECT.
2002-12-31 16:11:24 +00:00
Alexander Barton
3e026ded6f
- New commands CONNECT and DISCONNECT.
2002-12-31 16:11:06 +00:00
Alexander Barton
4e485443d3
- New commands CONNECT and DISCONNECT.
...
- Validate operator status before syntax checks.
2002-12-31 16:10:55 +00:00
Alexander Barton
01b58a0582
- Fixed test if we are still connected after a KILL command.
2002-12-31 16:09:55 +00:00
Alexander Barton
b8d7dcec77
- Adjusted includes for new "conn-func.h" header.
2002-12-30 17:15:42 +00:00
Alexander Barton
b77dae3499
- Reorganized code for new modules "conn-func.c" and "conn-func.h".
2002-12-30 17:14:59 +00:00
Alexander Barton
0b04bfa7c0
- New source module "conn-func.c" and "conn-func.h".
2002-12-30 17:14:28 +00:00
Alexander Barton
437f2c335f
- Renamed functions now found in "conn-zip.c".
2002-12-30 16:07:50 +00:00
Alexander Barton
e68cdf304f
- New source files "conn-zip.c" and "conn-zip.h".
2002-12-30 16:07:23 +00:00
Alexander Barton
a2544e496c
- Cleaned up handling of server configuration structures.
2002-12-30 00:01:42 +00:00
Alexander Barton
50d354bc21
- Removed needless include of <sys/select.h>.
2002-12-28 15:01:45 +00:00
Alexander Barton
8340e4267c
- Fixed prefix of error messages of KILL.
2002-12-27 13:35:19 +00:00
Alexander Barton
e21b9d842c
- If the server can't close a socket, it panics now.
...
- Quite enhanced logging :-)
2002-12-27 13:20:13 +00:00
Alexander Barton
15e4f67402
- Nicer log messages ;-)
2002-12-27 13:17:32 +00:00
Alexander Barton
01bec0daa2
- KILL can't kill server-links any more.
2002-12-27 13:17:04 +00:00
Alexander Barton
d19813cc4b
- new message ERR_CANTKILLSERVER_MSG.
2002-12-27 13:15:16 +00:00
Alexander Barton
4d2f279d2d
- fixed KILL: you can kill yourself now without crashing the server;
...
QUIT isn't send to other servers after the KILL any more.
2002-12-26 18:41:00 +00:00
Alexander Barton
b316c380ad
- replaced some calls to sprintf() with snprintf() -- more secure :-)
2002-12-26 17:14:48 +00:00
Alexander Barton
695631b298
- replaced a lot of strcpy() calls with strlcpy() which is more secure.
2002-12-26 17:04:54 +00:00
Alexander Barton
6626395c88
- replaced a lot of strcat() calls with strlcat() which is more secure.
2002-12-26 16:48:14 +00:00
Alexander Barton
0ced4181b0
- replaced all strncpy()'s and strncat()'s with strlcpy() and strlcat().
2002-12-26 16:25:43 +00:00
Alexander Barton
4f6f84e7e1
- include <sys/types.h>, if available.
2002-12-26 14:48:05 +00:00
Alexander Barton
b8456d1ba6
- addes required libngircd.a library to portabcheck_LDADD.
2002-12-26 14:46:28 +00:00
Alexander Barton
fbdf85b553
- strlcat() and strlcpy() replacement functions.
2002-12-26 14:34:11 +00:00
Alexander Barton
e13cb291dd
- added prototypes for replacement functions.
2002-12-26 13:26:34 +00:00
Alexander Barton
5efd0987f3
- added tests for replacement functions.
2002-12-26 13:19:36 +00:00
Alexander Barton
60cf07c875
- added strlcpy.c for strlcpy() and strlcat() replacement functions.
2002-12-26 13:18:46 +00:00
Alexander Barton
3c738ed46d
- definition of CONFIG_FILE and MOTD_FILE is now compatible with -Wtraditional.
2002-12-26 13:17:56 +00:00
Alexander Barton
9353a4a9cb
- reverted last patch: now compatible with -Wtraditional of GCC 3.
2002-12-26 13:16:54 +00:00
Alexander Barton
d9a13b317e
- fixed some warnings that showed up with -Wtraditional
2002-12-25 13:22:43 +00:00
Alexander Barton
ab44e1c6cc
- new messages: RPL_FEATURE, RPL_LOCALUSERS and RPL_NETUSERS.
2002-12-22 23:32:05 +00:00
Alexander Barton
a3f59f1a5b
- new numeric on login: RPL_FEATURE
2002-12-22 23:31:21 +00:00
Alexander Barton
212d36a33c
- enhanced LUSERS reply: RPL_LOCALUSERS, RPL_NETUSERS.
2002-12-22 23:30:33 +00:00
Alexander Barton
d0304b19a2
- new Functions: Client_MaxUserCount(), Client_MyMaxUserCount, Adjust_Counters().
2002-12-22 23:29:09 +00:00
Alexander Barton
397c5e2e02
- renamed variables to fit new signal handler.
...
- moved call to NGIRCd_Rehash() to Conn_Handler().
2002-12-19 04:35:26 +00:00
Alexander Barton
77c4c015e3
- renamed variables to fit new signal handler.
2002-12-19 04:33:27 +00:00
Alexander Barton
43a4bc5b8b
- New signal handler.
2002-12-19 04:29:59 +00:00
Alexander Barton
8841d87365
- fixed user mode propagation over server-links (IRC operator, away, ...)
2002-12-18 14:16:21 +00:00
Alexander Barton
d9e3f834d7
- fixed RPL_STATSCOMMANDS_MSG
2002-12-18 14:03:14 +00:00
Alexander Barton
210282d00f
- implemented subfunction "m" of STATS command.
2002-12-18 13:55:41 +00:00
Alexander Barton
17f7c6d3ed
- new function Parse_GetCommandStruct().
2002-12-18 13:53:20 +00:00
Alexander Barton
a02bf31d50
- new functions Conn_ResetWCounter() and Conn_WCounter().
2002-12-18 13:50:22 +00:00
Alexander Barton
98677b4348
- "STATS l" now only shows server-server-links and the own connection.
2002-12-18 13:07:46 +00:00
Alexander Barton
3a811ef563
- Validate_Config(): removed unused variable "i".
2002-12-18 02:53:36 +00:00
Alexander Barton
3e4f58e416
- If Conf_MaxConnections is "ulimited" (<1) it is limited to FD_SETSIZE.
2002-12-18 02:52:51 +00:00
Alexander Barton
b7be46ed8a
- validate Conf_MaxConnections against FD_SETSIZE if available;
...
- fixed up some log messages and enhanced configuration validation.
2002-12-18 02:47:12 +00:00
Alexander Barton
902ad91212
- new allocated connection structures will be initialized correctly now.
2002-12-17 11:46:54 +00:00
Alexander Barton
892144dc71
- new constant RPL_YOURESERVICE_MSG, ERR_CHANNELISFULL_MSG, ERR_BADCHANNELKEY_MSG.
...
- fixed ERR_PASSWDMISMATCH_MSG.
2002-12-16 23:11:59 +00:00
Alexander Barton
8d024d05d2
- new constant MAX_SERVICES,
...
- added k and l modes to CHANMODES.
2002-12-16 23:10:56 +00:00
Alexander Barton
69ad0e386e
- Implemented channel modes k (key) and l (user limit).
2002-12-16 23:06:46 +00:00
Alexander Barton
2e88dd72d1
- New functions Channel_[Set]Key(), Channel_[Set]MaxUsers.
2002-12-16 23:05:24 +00:00
Alexander Barton
7924fafb25
- fixed some error messages and prefixes.
2002-12-16 17:14:57 +00:00
Alexander Barton
7f61f413f4
- fixed broken handling of modes received from other servers.
2002-12-16 10:52:53 +00:00
Alexander Barton
c0d74a3860
- fixed some parsing bugs.
...
- better logging.
2002-12-15 16:29:18 +00:00
Alexander Barton
48ec815e99
- modified test suite to reflect changes in MODE parser.
2002-12-15 15:52:34 +00:00
Alexander Barton
80c6dc86ed
- new (and much more flexible!) MODE parser
2002-12-15 15:51:24 +00:00
Alexander Barton
25ca2b3cc5
- removed Conf_MaxPChannels and reverted to old behavior.
2002-12-14 13:36:19 +00:00
Alexander Barton
2694017426
- Conf_MaxPChannels is considered properly in channel mode changes now.
2002-12-14 13:24:09 +00:00
Alexander Barton
00e75ccd7d
- fixed up Conf_MaxJoins test on JOIN.
2002-12-14 13:23:11 +00:00
Alexander Barton
e907816380
- fixed up Channel_PCount() and Channel_CountForUser().
2002-12-14 13:21:56 +00:00
Alexander Barton
5b8b3b8384
- maximum channels per user limit implemented.
2002-12-13 17:53:32 +00:00
Alexander Barton
9f74b95015
- new message ERR_TOOMANYCHANNELS_MSG.
2002-12-13 17:51:41 +00:00
Alexander Barton
8b7b23cf8f
- new configuration variables: MaxJoins, MaxPChannels.
2002-12-13 17:32:33 +00:00
Alexander Barton
b7eb5f66dc
- new function Channel_CountForUser().
2002-12-13 17:22:57 +00:00
Alexander Barton
427be23b6e
- adjusted generation of cvs-version.h to new file header format.
2002-12-12 12:36:41 +00:00
Alexander Barton
ba767481d9
- removed old ID tag
2002-12-12 12:33:14 +00:00
Alexander Barton
490f28ffd1
- new file header format (in english);
...
- new file ident semantics.
2002-12-12 12:24:18 +00:00
Alexander Barton
c7f075236b
- new file header format (in english).
2002-12-12 12:23:43 +00:00
Alexander Barton
44a2b3cf69
- added missing include of stdio.h header for sprintf().
2002-12-12 11:40:41 +00:00
Alexander Barton
f0d633b5ac
- new file header format.
2002-12-12 11:37:11 +00:00
Alexander Barton
0f3f03b51d
- fixed up broken $Id field in new file header ...
2002-12-12 11:31:21 +00:00
Alexander Barton
fa7b3f0e4c
- new file header format.
2002-12-12 11:30:23 +00:00
Alexander Barton
6725d7893c
- translated file header and comments to english;
...
- new file ident semantics.
2002-12-12 11:26:08 +00:00
Alexander Barton
b99af4fa47
- IRC Operators can KILL users now.
2002-12-06 17:02:39 +00:00
Alexander Barton
6591f17f0a
- Logging von Verbindungen, die geschlossen werden/wurden verbessert.
2002-12-03 18:57:10 +00:00
Alexander Barton
9f122037ae
- Logging von doppelten ID's verbessert.
2002-12-03 18:56:33 +00:00
Alexander Barton
cde9dfdb77
- Verhalten von Conn_RecvQ() und Conn_SendQ() bei Kompression korrigiert.
2002-12-02 13:56:24 +00:00
Alexander Barton
f0349f5266
- bei ISON und USERHOST fehlte im Ergebnis-String der korrekte Absender.
2002-12-02 13:45:51 +00:00
Alexander Barton
bad7ac62a7
- STATS: Unterfunktion "L" implementiert.
2002-12-02 13:20:02 +00:00
Alexander Barton
39219230b2
- neue Befehle: Conn_StartTime(), Conn_SendQ(), Conn_RecvQ(), Conn_SendMsg(),
...
Conn_RecvMsg(), Conn_SendBytes[Zip](), Conn_RecvBytes[Zip]().
2002-12-02 13:19:37 +00:00
Alexander Barton
1e5fa014ba
- RPL_STATSLINKINFO_MSG ueberarbeitet, RPL_STATSLINKINFOZIP_MSG eingefuehrt.
2002-12-02 13:17:46 +00:00
Alexander Barton
2e02da291a
- Konfiguration wird nun besser validiert (Laenge, Zahlen).
2002-11-30 22:15:49 +00:00
Alexander Barton
e50d568f25
- bei STATS wurde der Target-Server aus dem falschen Argument bestimmt.
2002-11-30 18:10:01 +00:00
Alexander Barton
0c471b84f7
- neues Source-Modul "irc-info"; neuer Befehl STATS.
2002-11-30 17:39:56 +00:00
Alexander Barton
1e59617d2c
- Parser auf Befehlstabelle umgestellt.
2002-11-30 15:04:57 +00:00
Alexander Barton
e93f545c74
- "Text-Prefix" fuer Server-Notices auf "" gesetzt.
2002-11-29 17:38:17 +00:00