]> jfr.im git - solanum.git/log
solanum.git
10 years agoconfigure: move local autoconf macros to m4/charybdis.m4
Lee Starnes [Sun, 1 Jun 2014 19:40:19 +0000 (15:40 -0400)] 
configure: move local autoconf macros to m4/charybdis.m4

10 years agoconfigure: fix linking with shared sqlite on *BSD
Lee Starnes [Sun, 1 Jun 2014 02:56:12 +0000 (22:56 -0400)] 
configure: fix linking with shared sqlite on *BSD

10 years agoconfigure: use --with-shared-sqlite instead of --enable-shared-sqlite
Lee Starnes [Sun, 1 Jun 2014 01:14:09 +0000 (21:14 -0400)] 
configure: use --with-shared-sqlite instead of --enable-shared-sqlite

10 years agobandb: make Makefile work with BSD make again
Lee Starnes [Thu, 29 May 2014 21:53:43 +0000 (17:53 -0400)] 
bandb: make Makefile work with BSD make again

10 years agoconfigure: add --enable-shared-sqlite option
Lee Starnes [Tue, 27 May 2014 14:39:55 +0000 (10:39 -0400)] 
configure: add --enable-shared-sqlite option

When --enable-shared-sqlite is used, charybdis will be compiled with a shared
sqlite library if it is available.

10 years agoMerge branch 'master+umodes' of https://github.com/Adam-/charybdis
Jilles Tjoelker [Mon, 19 May 2014 21:37:20 +0000 (23:37 +0200)] 
Merge branch 'master+umodes' of https://github.com/Adam-/charybdis

10 years agoFix buffer overflow in introduce_client and burst_TS6
Adam [Tue, 13 May 2014 23:21:27 +0000 (19:21 -0400)] 
Fix buffer overflow in introduce_client and burst_TS6

If the client being introduced has more than 10 user modes send_umode()
will overflow ubuf

10 years agohelp: Update indexes
Mantas Mikulėnas [Sat, 10 May 2014 12:07:47 +0000 (15:07 +0300)] 
help: Update indexes

`make index` (add PRIVS for opers, CHANTRACE for users)

10 years agohelp: Add MONITOR to the user symlinks
Mantas Mikulėnas [Sat, 10 May 2014 12:04:29 +0000 (15:04 +0300)] 
help: Add MONITOR to the user symlinks

Apparently the overrides are done at `make install` time, okay.

10 years agom_version: remove spaces from version string
Mantas Mikulėnas [Tue, 6 May 2014 13:25:46 +0000 (16:25 +0300)] 
m_version: remove spaces from version string

"to make it machine parseable again", as in ircd-seven commit 03b2176b88a1.

10 years agom_version: display charybdis version in /version
Mantas Mikulėnas [Tue, 6 May 2014 13:21:00 +0000 (16:21 +0300)] 
m_version: display charybdis version in /version

Otherwise it just crashes when /version is used.

Closes: #60
10 years agoinfo: Change N-line to connect block.
Jilles Tjoelker [Sun, 27 Apr 2014 13:33:09 +0000 (15:33 +0200)] 
info: Change N-line to connect block.

10 years agoexample confs: Remove AHBL blacklists, which are no longer available.
Jilles Tjoelker [Sun, 6 Apr 2014 10:32:44 +0000 (12:32 +0200)] 
example confs: Remove AHBL blacklists, which are no longer available.

10 years agomkpasswd: Prompt for password twice
Alex Iadicicco [Fri, 4 Apr 2014 23:46:44 +0000 (16:46 -0700)] 
mkpasswd: Prompt for password twice

10 years agoFix const qualifier on raw_mask
Douglas Freed [Sun, 26 Jan 2014 10:02:07 +0000 (10:02 +0000)] 
Fix const qualifier on raw_mask

Fixes compilation warning about losing const qualifier in assignment to
non-const variable

(cherry picked from commit 6d9c3f50944e1da3bf3a1be6454f85d6d6f7ab37)

10 years agoFix format string type mismatch in src/capability.c.
Jilles Tjoelker [Sun, 9 Mar 2014 18:11:54 +0000 (19:11 +0100)] 
Fix format string type mismatch in src/capability.c.

The type 'long' was correct on most machines but not according to the C
standard and Windows 64-bit.

10 years agoRestore trailing whitespace in sqlite3 amalgamation.
Jilles Tjoelker [Sun, 9 Mar 2014 16:54:26 +0000 (17:54 +0100)] 
Restore trailing whitespace in sqlite3 amalgamation.

Stripping the whitespace from the upstream-maintained sqlite3 code just
causes merge conflicts with no benefit.

10 years agoFix fd leak if /dev/urandom can be opened but not read.
Jilles Tjoelker [Sun, 9 Mar 2014 13:54:45 +0000 (14:54 +0100)] 
Fix fd leak if /dev/urandom can be opened but not read.

10 years agoAdd first cut at 3.5.0 NEWS. [ci skip]
Jilles Tjoelker [Fri, 7 Mar 2014 22:06:39 +0000 (23:06 +0100)] 
Add first cut at 3.5.0 NEWS. [ci skip]

10 years agoblacklist: Make the snote more like the +c one.
Jilles Tjoelker [Fri, 7 Mar 2014 20:55:43 +0000 (21:55 +0100)] 
blacklist: Make the snote more like the +c one.

10 years agoMerge pull request #53 from ShadowNinja/clarify_U+R
William Pitcock [Thu, 6 Mar 2014 15:59:37 +0000 (09:59 -0600)] 
Merge pull request #53 from ShadowNinja/clarify_U+R

Clarify UMODE +R help text

10 years agoAdd DNSBL snotes for snomask +r.
Keith Buck [Wed, 5 Mar 2014 08:12:22 +0000 (08:12 +0000)] 
Add DNSBL snotes for snomask +r.

10 years agoRemove snotes on +r about GET/PUT/POST commands.
Jilles Tjoelker [Tue, 4 Mar 2014 22:02:40 +0000 (23:02 +0100)] 
Remove snotes on +r about GET/PUT/POST commands.

The server notice "HTTP Proxy disconnected: [<user>@<host>]" is
confusing and not particularly useful.

10 years agoRemove trailing whitespace from all .c and .h files.
Keith Buck [Mon, 3 Mar 2014 04:25:47 +0000 (04:25 +0000)] 
Remove trailing whitespace from all .c and .h files.

3134 bytes were removed.

10 years agos_conf: Don't leak log file paths when loading default conf
Keith Buck [Mon, 3 Mar 2014 04:12:07 +0000 (04:12 +0000)] 
s_conf: Don't leak log file paths when loading default conf

This change prevents the log file paths from being leaked when
rehashing. Additionally, fname_killlog was added to two places where it
was previously forgotten.

10 years agos_conf: Don't leak strings when loading default conf
Keith Buck [Mon, 3 Mar 2014 03:58:40 +0000 (03:58 +0000)] 
s_conf: Don't leak strings when loading default conf

This change prevents conf strings from being leaked when resetting the
conf to default prior to a rehash. Additionally, some default strings
are now rb_strdup'd into the ConfigFileEntry structure after loading the
conf so that they aren't allocated and then immediately freed by the
conf loading process.

10 years agolibratbox openssl: Don't leak EC_KEY structures.
Keith Buck [Sun, 2 Mar 2014 23:56:20 +0000 (23:56 +0000)] 
libratbox openssl: Don't leak EC_KEY structures.

10 years agonewconf.c: Remove end-of-line whitespace.
Keith Buck [Sun, 2 Mar 2014 23:34:32 +0000 (23:34 +0000)] 
newconf.c: Remove end-of-line whitespace.

10 years agoconf parsing: Fix freeing section names upon section end.
Keith Buck [Sun, 2 Mar 2014 23:31:13 +0000 (23:31 +0000)] 
conf parsing: Fix freeing section names upon section end.

10 years agoAvoid possible null dereference.
Jilles Tjoelker [Sun, 2 Mar 2014 23:01:56 +0000 (00:01 +0100)] 
Avoid possible null dereference.

10 years agoFix a couple more string leaks.
Keith Buck [Sun, 2 Mar 2014 22:05:30 +0000 (22:05 +0000)] 
Fix a couple more string leaks.

10 years agocommio: Properly zero a struct msghdr.
Jilles Tjoelker [Sun, 2 Mar 2014 21:12:19 +0000 (22:12 +0100)] 
commio: Properly zero a struct msghdr.

This bug is probably not noticeable because all specified fields are
initialized later.

10 years agocommio: Explicitly ignore return value from setsockopt(TCP_DEFER_ACCEPT).
Jilles Tjoelker [Sun, 2 Mar 2014 21:09:08 +0000 (22:09 +0100)] 
commio: Explicitly ignore return value from setsockopt(TCP_DEFER_ACCEPT).

10 years agosslproc: Add missing break, still allowing zlib when ssl cannot be set up.
Jilles Tjoelker [Sun, 2 Mar 2014 20:58:38 +0000 (21:58 +0100)] 
sslproc: Add missing break, still allowing zlib when ssl cannot be set up.

10 years agolog_client_name: Remove MASK_IP case.
Jilles Tjoelker [Sun, 2 Mar 2014 20:54:29 +0000 (21:54 +0100)] 
log_client_name: Remove MASK_IP case.

The MASK_IP case in log_client_name() was broken (because of a missing
break, it behaved as HIDE_IP). However, log_client_name() with MASK_IP
does not make sense anyway and is not used.

10 years agofindforwards: Don't compare array to NULL as this is always true.
Jilles Tjoelker [Sun, 2 Mar 2014 20:47:36 +0000 (21:47 +0100)] 
findforwards: Don't compare array to NULL as this is always true.

10 years agolistener: Move error messages to something visible by default.
Jilles Tjoelker [Sat, 1 Mar 2014 18:05:55 +0000 (19:05 +0100)] 
listener: Move error messages to something visible by default.

If a listening port cannot be opened, send error messages to opers with
snomask +s and ircd.log, instead of snomask +d and the ioerror log, which
both are usually disabled.

Also, restore information about what listener is having problems. This
was lost when report_error() was replaced.

10 years agodoc/extban: Correct description of EXTBAN token in 005.
Jilles Tjoelker [Sat, 1 Mar 2014 17:16:40 +0000 (18:16 +0100)] 
doc/extban: Correct description of EXTBAN token in 005.

The change from EXTBAN=$:<types> to EXTBAN=$,<types> was made later on
and the documentation was not adjusted.

10 years agoconf parsing: Fix memory leaks and clean up code a bit.
Keith Buck [Fri, 28 Feb 2014 07:02:49 +0000 (07:02 +0000)] 
conf parsing: Fix memory leaks and clean up code a bit.

Charybdis currently leaks about 45-50k per configuration parse,
including every rehash. This change plugs these leaks by properly
iterating through all conf_parm_t structures to seek all strings that
should be freed and also by freeing the conf_parm_t structures
themselves.

These leaks have been present since the original rewrite of the
configuration parsing system in ircd-ratbox r11953.

Additionally, this change also cleans up and documents the parsing code
a bit.

10 years agoircd_parser: Fix whitespace errors.
Jilles Tjoelker [Fri, 28 Feb 2014 14:51:52 +0000 (15:51 +0100)] 
ircd_parser: Fix whitespace errors.

10 years agoSIGNON: Do not send uninitialized data if login name starts with '*'.
Jilles Tjoelker [Fri, 28 Feb 2014 14:48:07 +0000 (15:48 +0100)] 
SIGNON: Do not send uninitialized data if login name starts with '*'.

10 years agolibratbox: Abort if the restart callback returns.
Jilles Tjoelker [Thu, 27 Feb 2014 23:53:13 +0000 (00:53 +0100)] 
libratbox: Abort if the restart callback returns.

10 years agostats c: Simplify construction of flags string.
Jilles Tjoelker [Sun, 23 Feb 2014 23:10:42 +0000 (00:10 +0100)] 
stats c: Simplify construction of flags string.

Perhaps this avoids false positives in static analysis.

10 years agocommio: Add error string for SSL trouble.
Jilles Tjoelker [Sun, 23 Feb 2014 23:06:19 +0000 (00:06 +0100)] 
commio: Add error string for SSL trouble.

10 years agoserver: Use rb_strlcpy() instead of strcpy().
Jilles Tjoelker [Sun, 23 Feb 2014 23:04:11 +0000 (00:04 +0100)] 
server: Use rb_strlcpy() instead of strcpy().

An overflow should be impossible here, but be paranoid.

10 years agoSimplify module path list, removing strcpy use.
Jilles Tjoelker [Sun, 23 Feb 2014 22:47:27 +0000 (23:47 +0100)] 
Simplify module path list, removing strcpy use.

10 years agoFix use after free.
Jilles Tjoelker [Sun, 23 Feb 2014 22:46:57 +0000 (23:46 +0100)] 
Fix use after free.

10 years agoconf: Remove dead store.
Jilles Tjoelker [Sun, 23 Feb 2014 22:04:52 +0000 (23:04 +0100)] 
conf: Remove dead store.

10 years agoFix various printf arg types.
Jilles Tjoelker [Sun, 23 Feb 2014 21:46:06 +0000 (22:46 +0100)] 
Fix various printf arg types.

10 years agopart: Fix constness issue with part hook.
Jilles Tjoelker [Sun, 23 Feb 2014 21:55:22 +0000 (22:55 +0100)] 
part: Fix constness issue with part hook.

10 years agomodlist: Fix address display on 64-bit systems.
Jilles Tjoelker [Sun, 23 Feb 2014 21:42:51 +0000 (22:42 +0100)] 
modlist: Fix address display on 64-bit systems.

10 years agomodules: Fix bad sizeofs.
Jilles Tjoelker [Sun, 23 Feb 2014 21:39:42 +0000 (22:39 +0100)] 
modules: Fix bad sizeofs.

10 years agoReplace double semicolons with single; place null statement on its own line.
Jilles Tjoelker [Sun, 23 Feb 2014 21:23:00 +0000 (22:23 +0100)] 
Replace double semicolons with single; place null statement on its own line.

No functional change is intended.

10 years agoconf: Do not leak memory when modules::module is already loaded.
Jilles Tjoelker [Sun, 23 Feb 2014 21:20:43 +0000 (22:20 +0100)] 
conf: Do not leak memory when modules::module is already loaded.

10 years agoextensions/mkpasswd: Do not leak /dev/random fd.
Jilles Tjoelker [Sun, 23 Feb 2014 21:18:44 +0000 (22:18 +0100)] 
extensions/mkpasswd: Do not leak /dev/random fd.

10 years agoballoc: Fix memory leak when get_block() fails.
Jilles Tjoelker [Sun, 23 Feb 2014 21:14:47 +0000 (22:14 +0100)] 
balloc: Fix memory leak when get_block() fails.

10 years agobantool: Close .conf files when done reading.
Jilles Tjoelker [Sun, 23 Feb 2014 21:10:34 +0000 (22:10 +0100)] 
bantool: Close .conf files when done reading.

Not very many files are read, so leaving them open is not a major issue.

10 years agoextensions/roleplay: Fix memory leak on every use.
Jilles Tjoelker [Sun, 23 Feb 2014 21:01:04 +0000 (22:01 +0100)] 
extensions/roleplay: Fix memory leak on every use.

10 years agostartup: Check return value of open /dev/null. Don't fclose stdin/stdout/stderr.
Jilles Tjoelker [Sun, 23 Feb 2014 20:51:19 +0000 (21:51 +0100)] 
startup: Check return value of open /dev/null. Don't fclose stdin/stdout/stderr.

Open /dev/null for standard fds earlier, so a failure can be reported.
Do not fclose stdin/stdout/stderr but just overwrite the fds with
/dev/null.

10 years agowebirc: Check validity of given IP.
Jilles Tjoelker [Sun, 23 Feb 2014 20:14:09 +0000 (21:14 +0100)] 
webirc: Check validity of given IP.

10 years agodoc/ts6-protocol: Document ETB message (EOPMOD capab).
Jilles Tjoelker [Sat, 22 Feb 2014 16:43:57 +0000 (17:43 +0100)] 
doc/ts6-protocol: Document ETB message (EOPMOD capab).

10 years agom_services: Make sure to return a value from the modinit function.
Jilles Tjoelker [Wed, 19 Feb 2014 23:18:02 +0000 (00:18 +0100)] 
m_services: Make sure to return a value from the modinit function.

10 years agoRemove SSL_OP_NO_COMPRESSION from openssl initialization.
Keith Buck [Fri, 21 Feb 2014 09:17:29 +0000 (09:17 +0000)] 
Remove SSL_OP_NO_COMPRESSION from openssl initialization.

SSL_OP_NO_COMPRESSION was presumably added in an attempt to prevent
information leakage in a manner similar to recent attacks on HTTPS.
However, assuming that IRC is vulnerable to the same class of attacks is
incorrect: the behavior of the IRC protocol (a single long-running
connection) is not the same as that of HTTPS (multiple ephemeral
connections). HTTPS's use of ephemeral connections means that certain
assumptions can be made about the contents of the compression
algorithm's dictionaries and the content exchanged between the client
and server (e.g. the content being nearly the same for each connection),
which is not true for IRC. Additionally, they rely on the attacker being
able to coerce the client into creating many HTTPS connections (and
resending some secret token belonging to the user, along with
attacker-controlled data) each time, none of which is possible with IRC.
Lastly, since compression is no longer performed, this option will
result in leaking the lengths of messages transmitted to and from the
client. This option does reduce CPU utilization on Charybdis servers but
also increases bandwidth consumed.

10 years agoClarify UMODE +R help text
ShadowNinja [Wed, 19 Feb 2014 22:52:57 +0000 (17:52 -0500)] 
Clarify UMODE +R help text

10 years agolibratbox: Fix undefined behaviour advancing pointer beyond end of array.
Jilles Tjoelker [Sun, 16 Feb 2014 15:06:01 +0000 (16:06 +0100)] 
libratbox: Fix undefined behaviour advancing pointer beyond end of array.

The C standard does not allow constructing pointers beyond one past the end
of an array. Therefore, if size is an unsigned type (size_t), then
buf + size is never less than buf.

Clang on 32-bit took advantage of the undefined behaviour, causing
segfaults.

Lightly tested.

10 years agoMerge pull request #46 from grawity/sasl-mechlist
William Pitcock [Sat, 8 Feb 2014 19:02:16 +0000 (13:02 -0600)] 
Merge pull request #46 from grawity/sasl-mechlist

sasl: send RPL_SASLMECHS

10 years agossld: force the control buffer to be unsigned bytes except in special circumstances
William Pitcock [Sat, 8 Feb 2014 18:40:35 +0000 (18:40 +0000)] 
ssld: force the control buffer to be unsigned bytes except in special circumstances

This has the side effect of fixing GnuTLS.

10 years agolibratbox: regenerate autotools files
William Pitcock [Sat, 8 Feb 2014 18:35:24 +0000 (18:35 +0000)] 
libratbox: regenerate autotools files

10 years agolibratbox/gnutls: add gnutls v3 api compatibility without breaking v2
William Pitcock [Sat, 8 Feb 2014 18:34:49 +0000 (18:34 +0000)] 
libratbox/gnutls: add gnutls v3 api compatibility without breaking v2

10 years agoautotools: fix typo relating to ban db
Rylee Elise Fowler [Fri, 31 Jan 2014 16:03:54 +0000 (11:03 -0500)] 
autotools: fix typo relating to ban db

10 years agoRemove an unused variable.
Jilles Tjoelker [Thu, 16 Jan 2014 23:23:09 +0000 (00:23 +0100)] 
Remove an unused variable.

10 years agoAvoid wrong detection of redundant/duplicate auth blocks with auth_user.
Jilles Tjoelker [Thu, 16 Jan 2014 23:22:47 +0000 (00:22 +0100)] 
Avoid wrong detection of redundant/duplicate auth blocks with auth_user.

If there was more than one user= per auth block, the check for redundant
or duplicate auth blocks did not take auth_user into account.

10 years agoopenssl: Improve security using options recommanded by Argure.
Jilles Tjoelker [Wed, 15 Jan 2014 21:25:26 +0000 (22:25 +0100)] 
openssl: Improve security using options recommanded by Argure.

Note that these are not available in old versions of OpenSSL (like FreeBSD
9.x base OpenSSL), so allow them to be missing.

A side effect may be slightly higher CPU consumption and network traffic.

10 years agoopenssl: Use cipher list suggested by Argure.
Jilles Tjoelker [Wed, 15 Jan 2014 21:13:47 +0000 (22:13 +0100)] 
openssl: Use cipher list suggested by Argure.

10 years agoopenssl: Fix compiler warning.
Jilles Tjoelker [Wed, 15 Jan 2014 21:09:57 +0000 (22:09 +0100)] 
openssl: Fix compiler warning.

10 years agoopenssl: Set some sort of session id context.
Jilles Tjoelker [Wed, 15 Jan 2014 20:50:08 +0000 (21:50 +0100)] 
openssl: Set some sort of session id context.

Without a session id context and if client certificates are used, OpenSSL
fails the handshake if an attempt is made to reuse an old session. Various
clients could not reconnect after a disconnection because of this.

See https://bugzilla.mozilla.org/show_bug.cgi?id=858394#c34 for a bug
report.

10 years agodoc/ts6-protocol: Correct the mode letter for termination
Mantas Mikulėnas [Sun, 12 Jan 2014 19:17:34 +0000 (21:17 +0200)] 
doc/ts6-protocol: Correct the mode letter for termination

10 years agobandb: Don't attempt to write to a NULL helper.
Keith Buck [Sun, 12 Jan 2014 01:38:48 +0000 (01:38 +0000)] 
bandb: Don't attempt to write to a NULL helper.

10 years agosasl: send RPL_SASLMECHS
Mantas Mikulėnas [Sat, 11 Jan 2014 22:18:58 +0000 (00:18 +0200)] 
sasl: send RPL_SASLMECHS

10 years agoMerge pull request #42 from Argure/genssl
William Pitcock [Fri, 27 Dec 2013 13:13:08 +0000 (05:13 -0800)] 
Merge pull request #42 from Argure/genssl

Use sha-512 rather than deprecated sha-1; generate a csr

10 years agoMerge pull request #45 from somasonic/master
Keith Buck [Sun, 22 Dec 2013 02:55:32 +0000 (18:55 -0800)] 
Merge pull request #45 from somasonic/master

Fix grammatical error in extensions/chm_sslonly.c

10 years agoFix grammatical error
Andrew [Thu, 12 Dec 2013 04:08:12 +0000 (04:08 +0000)] 
Fix grammatical error

10 years agolibratbox/openssl: check that ECDHE is really available on redhat derivatives (closes...
William Pitcock [Sat, 30 Nov 2013 19:55:01 +0000 (19:55 +0000)] 
libratbox/openssl: check that ECDHE is really available on redhat derivatives (closes #43)

10 years agoINSTALL: Fix documentation for assert configure options.
Keith Buck [Wed, 27 Nov 2013 09:23:20 +0000 (09:23 +0000)] 
INSTALL: Fix documentation for assert configure options.

10 years agoMerge branch 'fix-sha256-crypt' of https://github.com/grawity/charybdis
Jilles Tjoelker [Fri, 22 Nov 2013 22:48:38 +0000 (23:48 +0100)] 
Merge branch 'fix-sha256-crypt' of https://github.com/grawity/charybdis

10 years agohelp: Fix some required oper privileges.
Jilles Tjoelker [Fri, 22 Nov 2013 22:41:15 +0000 (23:41 +0100)] 
help: Fix some required oper privileges.

10 years agohelp: Remove mention of remote commands that do not actually work.
Jilles Tjoelker [Fri, 22 Nov 2013 22:34:54 +0000 (23:34 +0100)] 
help: Remove mention of remote commands that do not actually work.

10 years agoJust use 4k RSA certificates while at it
Patrick Godschalk [Mon, 18 Nov 2013 23:59:08 +0000 (00:59 +0100)] 
Just use 4k RSA certificates while at it

10 years agoUse sha-512 rather than deprecated sha-1; generate a csr
Patrick Godschalk [Mon, 18 Nov 2013 23:49:01 +0000 (00:49 +0100)] 
Use sha-512 rather than deprecated sha-1; generate a csr

10 years agoMerge pull request #41 from lyska/master
William Pitcock [Fri, 15 Nov 2013 12:26:39 +0000 (04:26 -0800)] 
Merge pull request #41 from lyska/master

helpfiles: fix spelling, grammar remove old information

10 years agohelpfiles: fix spelling, grammar remove old information
Sam Dodrill [Fri, 15 Nov 2013 04:34:42 +0000 (23:34 -0500)] 
helpfiles: fix spelling, grammar remove old information

What is done here:

1. All the outdated configuration flag information has been removed and
   replaced with the more current information.
2. Spellchecking has been done on all helpfiles and the actual errors
   have been fixed.

10 years agoRemove duplicate default-value code.
Keith Buck [Tue, 29 Oct 2013 09:07:19 +0000 (09:07 +0000)] 
Remove duplicate default-value code.

Default values for default_floodcount and default_ident_timeout are set
in s_conf.c. Remove code that checks for missing values in ircd.c.
Additionally, reset default_ident_timeout to 5 if an invalid value (i.e.
0) is provided.

10 years agooverride: Remove umode +p when deopering.
Jilles Tjoelker [Fri, 25 Oct 2013 15:49:58 +0000 (17:49 +0200)] 
override: Remove umode +p when deopering.

10 years agoRevert "Add m_override.c - an improved override module."
Keith Buck [Fri, 25 Oct 2013 05:39:55 +0000 (05:39 +0000)] 
Revert "Add m_override.c - an improved override module."

This reverts commit f00a55e9a1005f488b3b8d8be358bcee4c975fde.

10 years agoAdd m_override.c - an improved override module.
Keith Buck [Tue, 22 Oct 2013 08:50:15 +0000 (08:50 +0000)] 
Add m_override.c - an improved override module.

10 years agolibratbox/crypt: fix difference from glibc in sha256_crypt()
Mantas Mikulėnas [Wed, 23 Oct 2013 11:39:51 +0000 (14:39 +0300)] 
libratbox/crypt: fix difference from glibc in sha256_crypt()

rb_crypt() was generating different SHA256 ($5$) hashes than glibc,
making hashes generated with charybdis unusable in ratbox and other
software, and vice versa.

10 years agoUse RFC5737 and RFC3849 addresses in example confs.
Jilles Tjoelker [Sun, 6 Oct 2013 17:39:06 +0000 (19:39 +0200)] 
Use RFC5737 and RFC3849 addresses in example confs.

There are IPv4 and IPv6 ranges reserved for documentation and example code;
use these to minimize the risk if someone accidentally uses an unmodified
example conf.

10 years agoFix parameter counts for me_dline and me_undline.
Keith Buck [Mon, 23 Sep 2013 09:34:30 +0000 (09:34 +0000)] 
Fix parameter counts for me_dline and me_undline.

10 years agowhowas: Use the normal rules for IP visibility.
Jilles Tjoelker [Sat, 14 Sep 2013 10:26:32 +0000 (12:26 +0200)] 
whowas: Use the normal rules for IP visibility.

Add the flags (auth{} spoof, dynamic spoof) to struct Whowas and add a
show_ip_whowas().

Normal users now see IPs of unspoofed users, and remote opers can see IPs
behind dynamic spoofs. Also, general::hide_spoof_ips is now applied when
the IP is shown, not when the client exits.

10 years agoFix parameter name in header file for show_ip_conf().
Jilles Tjoelker [Sat, 14 Sep 2013 10:26:24 +0000 (12:26 +0200)] 
Fix parameter name in header file for show_ip_conf().