]> jfr.im git - irc/rqf/shadowircd.git/log
irc/rqf/shadowircd.git
14 years agoAutomated merge with ssh://hg.atheme.org//hg/charybdis
William Pitcock [Sun, 31 Jan 2010 01:21:28 +0000 (19:21 -0600)] 
Automated merge with ssh://hg.atheme.org//hg/charybdis

14 years agomodreload: Causing an entire 50,000 user network to crash due to user-error is a...
William Pitcock [Sun, 31 Jan 2010 01:21:17 +0000 (19:21 -0600)] 
modreload: Causing an entire 50,000 user network to crash due to user-error is a bad idea, don't let it happen again by not allowing paths in /modreload.

14 years agoSlightly tighten auth{} duplicate check:
Jilles Tjoelker [Sun, 31 Jan 2010 00:40:43 +0000 (01:40 +0100)] 
Slightly tighten auth{} duplicate check:

If the existing auth{} block has no auth_user, it will
trump any auth{} block for the same u@h.

14 years agoTake auth_user into account when detecting redundant/duplicate auth{}.
Jilles Tjoelker [Sun, 31 Jan 2010 00:36:37 +0000 (01:36 +0100)] 
Take auth_user into account when detecting redundant/duplicate auth{}.

from ircd-seven (spb)

14 years agoNo need to be paranoid about clearing auth_user.
Jilles Tjoelker [Sun, 31 Jan 2010 00:30:25 +0000 (01:30 +0100)] 
No need to be paranoid about clearing auth_user.
It is a username, not a password.

14 years agoFix memory leak with auth_user.
Jilles Tjoelker [Sun, 31 Jan 2010 00:29:08 +0000 (01:29 +0100)] 
Fix memory leak with auth_user.

from ircd-seven (spb)

14 years agoRemove remnants of <foo>_t typedefs.
Jilles Tjoelker [Sat, 30 Jan 2010 14:57:10 +0000 (15:57 +0100)] 
Remove remnants of <foo>_t typedefs.

14 years agoFix /links buffer overflow.
Jilles Tjoelker [Wed, 27 Jan 2010 20:05:10 +0000 (21:05 +0100)] 
Fix /links buffer overflow.

14 years agoFix op-moderate (cmode +z) for channel names with '@'.
Jilles Tjoelker [Sun, 24 Jan 2010 18:37:00 +0000 (19:37 +0100)] 
Fix op-moderate (cmode +z) for channel names with '@'.

14 years agoDo not read in help files starting with a dot (including dot and dot-dot).
Jilles Tjoelker [Fri, 22 Jan 2010 01:02:45 +0000 (02:02 +0100)] 
Do not read in help files starting with a dot (including dot and dot-dot).

14 years agoFix include/serno.h generation.
Jilles Tjoelker [Fri, 22 Jan 2010 00:41:48 +0000 (01:41 +0100)] 
Fix include/serno.h generation.

Apparently #value# is no longer special in hg templates.

14 years agoFix memory leak and bad error reporting with posix_spawn():
Jilles Tjoelker [Thu, 21 Jan 2010 23:09:56 +0000 (00:09 +0100)] 
Fix memory leak and bad error reporting with posix_spawn():
* an initialized posix_spawnattr_t must be destroyed
* posix_spawn() returns an error number instead of setting errno

libratbox trunk r26730

14 years agoDon't cache files that are empty or not files. Avoids crashing on the likes of 'HELP .'
Stephen Bennett [Thu, 21 Jan 2010 16:27:34 +0000 (16:27 +0000)] 
Don't cache files that are empty or not files. Avoids crashing on the likes of 'HELP .'

14 years agoPut back fb7d6089158e, not setting large_ctcp_sent for CTCP ACTION.
Jilles Tjoelker [Tue, 19 Jan 2010 23:03:57 +0000 (00:03 +0100)] 
Put back fb7d6089158e, not setting large_ctcp_sent for CTCP ACTION.

14 years agoMerge +C (no CTCP to channels) from ircd-seven.
William Pitcock [Tue, 19 Jan 2010 08:11:04 +0000 (02:11 -0600)] 
Merge +C (no CTCP to channels) from ircd-seven.

14 years agoAutomated merge with ssh://hg.atheme.org//hg/charybdis
William Pitcock [Tue, 19 Jan 2010 07:47:27 +0000 (01:47 -0600)] 
Automated merge with ssh://hg.atheme.org//hg/charybdis

14 years agosupported: Add CLIENTVER=3.0 to indicate presence of 3.0 core capabilities (such...
William Pitcock [Tue, 19 Jan 2010 07:47:21 +0000 (01:47 -0600)] 
supported: Add CLIENTVER=3.0 to indicate presence of 3.0 core capabilities (such as CAP, extended WHO, etc) as requested by LifeIsPain.

14 years agoDo not set large_ctcp_sent for CTCP ACTION as it does not request a reply.
Jilles Tjoelker [Thu, 14 Jan 2010 00:12:16 +0000 (01:12 +0100)] 
Do not set large_ctcp_sent for CTCP ACTION as it does not request a reply.

14 years agoIf a removed resv was temporary, mention this in the server notice.
Jilles Tjoelker [Sat, 9 Jan 2010 21:14:53 +0000 (22:14 +0100)] 
If a removed resv was temporary, mention this in the server notice.
This agrees with xline.

14 years agoAdd back unresv (permanent resv) notices.
Jilles Tjoelker [Sat, 9 Jan 2010 21:12:06 +0000 (22:12 +0100)] 
Add back unresv (permanent resv) notices.

14 years agoPut back resv_forcepart.
Jilles Tjoelker [Sat, 9 Jan 2010 18:08:48 +0000 (19:08 +0100)] 
Put back resv_forcepart.
This undoes erroneous revert in a3c064b3b8a2.

14 years agoComplete the move of xlines and resvs from aconf->name to aconf->host.
Jilles Tjoelker [Fri, 8 Jan 2010 17:46:29 +0000 (18:46 +0100)] 
Complete the move of xlines and resvs from aconf->name to aconf->host.

14 years agobantool: change empty oper fields to "unknown".
Jilles Tjoelker [Fri, 8 Jan 2010 17:17:16 +0000 (18:17 +0100)] 
bantool: change empty oper fields to "unknown".
Otherwise they would cause a crash when ircd tries to load them.

14 years agoDo not change \s in xlines to spaces, match_esc() treats \s correctly.
Jilles Tjoelker [Fri, 8 Jan 2010 17:13:47 +0000 (18:13 +0100)] 
Do not change \s in xlines to spaces, match_esc() treats \s correctly.

This undoes erroneous revert in a3c064b3b8a2.

14 years agoFix build: we need -DSQLITE_THREADSAFE=0 -DSQLITE_OMIT_LOAD_EXTENSION=1
Jilles Tjoelker [Fri, 8 Jan 2010 15:02:30 +0000 (16:02 +0100)] 
Fix build: we need -DSQLITE_THREADSAFE=0 -DSQLITE_OMIT_LOAD_EXTENSION=1
for the sqlite sources.

14 years agoAdd back missing notices.
William Pitcock [Fri, 8 Jan 2010 00:17:08 +0000 (18:17 -0600)] 
Add back missing notices.

14 years agoFix up more things with bandb.
William Pitcock [Fri, 8 Jan 2010 00:14:15 +0000 (18:14 -0600)] 
Fix up more things with bandb.

14 years agoLoad in new bans from bandb on startup.
William Pitcock [Fri, 8 Jan 2010 00:06:15 +0000 (18:06 -0600)] 
Load in new bans from bandb on startup.

14 years agoMake this work again.
William Pitcock [Thu, 7 Jan 2010 23:50:49 +0000 (17:50 -0600)] 
Make this work again.

14 years agoMake this work again.
William Pitcock [Thu, 7 Jan 2010 23:49:08 +0000 (17:49 -0600)] 
Make this work again.

14 years agoReadd some oper notices.
William Pitcock [Thu, 7 Jan 2010 23:37:52 +0000 (17:37 -0600)] 
Readd some oper notices.

14 years agoStart bandb on ircd initialization.
William Pitcock [Thu, 7 Jan 2010 23:22:44 +0000 (17:22 -0600)] 
Start bandb on ircd initialization.

14 years agoUpdate modules to use bandb_add()/bandb_del().
William Pitcock [Thu, 7 Jan 2010 23:19:03 +0000 (17:19 -0600)] 
Update modules to use bandb_add()/bandb_del().

14 years agoAdd bandb IRCd APIs.
William Pitcock [Thu, 7 Jan 2010 23:10:16 +0000 (17:10 -0600)] 
Add bandb IRCd APIs.

14 years agoAdd sqlite3 to build.
William Pitcock [Thu, 7 Jan 2010 23:00:24 +0000 (17:00 -0600)] 
Add sqlite3 to build.

14 years agobantool: Fix compilation error.
William Pitcock [Thu, 7 Jan 2010 23:00:18 +0000 (17:00 -0600)] 
bantool: Fix compilation error.

14 years agoAdd DBPATH.
William Pitcock [Thu, 7 Jan 2010 22:55:34 +0000 (16:55 -0600)] 
Add DBPATH.

14 years agoRun autoreconf.
William Pitcock [Thu, 7 Jan 2010 22:51:32 +0000 (16:51 -0600)] 
Run autoreconf.

14 years agoLink bandb to build.
William Pitcock [Thu, 7 Jan 2010 22:51:09 +0000 (16:51 -0600)] 
Link bandb to build.

14 years agoAdd bandb code.
William Pitcock [Thu, 7 Jan 2010 22:50:34 +0000 (16:50 -0600)] 
Add bandb code.

14 years agoAutomated merge with ssh://hg.atheme.org//hg/charybdis
William Pitcock [Thu, 7 Jan 2010 22:02:56 +0000 (16:02 -0600)] 
Automated merge with ssh://hg.atheme.org//hg/charybdis

14 years agoUpdate trunk to 3.2 (non-release).
William Pitcock [Thu, 7 Jan 2010 22:02:50 +0000 (16:02 -0600)] 
Update trunk to 3.2 (non-release).

14 years agoSCAN UMODES: default list-max to 500, like a global WHO.
Jilles Tjoelker [Fri, 1 Jan 2010 21:55:25 +0000 (22:55 +0100)] 
SCAN UMODES: default list-max to 500, like a global WHO.

14 years agoUpdate some copyright years.
Jilles Tjoelker [Fri, 1 Jan 2010 21:46:34 +0000 (22:46 +0100)] 
Update some copyright years.

14 years agots6-protocol.txt: mention meaning of capabs EX, IE, SERVICES, KNOCK.
Jilles Tjoelker [Fri, 25 Dec 2009 23:25:52 +0000 (00:25 +0100)] 
ts6-protocol.txt: mention meaning of capabs EX, IE, SERVICES, KNOCK.

14 years agoRemove FLAGS_SENDQEX, fix sendq exceeded snotes for servers.
Jilles Tjoelker [Mon, 21 Dec 2009 15:58:25 +0000 (16:58 +0100)] 
Remove FLAGS_SENDQEX, fix sendq exceeded snotes for servers.

from ircd-ratbox

14 years agoAdd two more reasons why ssld_count>1 can be useful: bugs and fd limits.
Jilles Tjoelker [Tue, 17 Nov 2009 23:00:07 +0000 (00:00 +0100)] 
Add two more reasons why ssld_count>1 can be useful: bugs and fd limits.

14 years agossld: Fix an fd leak when closing connections.
Jilles Tjoelker [Sun, 15 Nov 2009 22:11:18 +0000 (23:11 +0100)] 
ssld: Fix an fd leak when closing connections.

Lightly tested.

14 years agossld: Do not crash if not all fds in a message could be received.
Jilles Tjoelker [Sun, 15 Nov 2009 21:41:02 +0000 (22:41 +0100)] 
ssld: Do not crash if not all fds in a message could be received.
Actually fill the mod_ctl_buf_t.nfds field.

14 years agoAutomated merge with ssh://hg.atheme.org//hg/charybdis
William Pitcock [Sun, 25 Oct 2009 02:07:53 +0000 (21:07 -0500)] 
Automated merge with ssh://hg.atheme.org//hg/charybdis

14 years agoIf you're going to censor my jokes, at least do it right.
William Pitcock [Sun, 25 Oct 2009 02:07:41 +0000 (21:07 -0500)] 
If you're going to censor my jokes, at least do it right.

14 years agoNote that blacklist{} only accepts host/reason pairs, no host+host+reason.
Jilles Tjoelker [Sun, 18 Oct 2009 19:08:37 +0000 (21:08 +0200)] 
Note that blacklist{} only accepts host/reason pairs, no host+host+reason.

14 years agoUse full (:n!u@h) prefix for sending ETB from a user to clients.
Jilles Tjoelker [Sat, 19 Sep 2009 22:44:47 +0000 (00:44 +0200)] 
Use full (:n!u@h) prefix for sending ETB from a user to clients.

14 years agoForce part local users (not resv_exempt) on channel resv.
Jilles Tjoelker [Sat, 19 Sep 2009 19:24:35 +0000 (21:24 +0200)] 
Force part local users (not resv_exempt) on channel resv.
A notice will be sent to any force parted users that the channel
is temporarily/permanently unavailable on the server.
A new config option channel::resv_forcepart can be used to disable this.

from ircd-ratbox (dubkat)

14 years agoDisplay o:line "nickname" in global oper-up messages.
William Pitcock [Mon, 13 Jul 2009 17:55:35 +0000 (12:55 -0500)] 
Display o:line "nickname" in global oper-up messages.

14 years agoFix fd passing on FreeBSD/amd64 and possibly Solaris/sparc.
Jilles Tjoelker [Thu, 9 Jul 2009 22:27:01 +0000 (00:27 +0200)] 
Fix fd passing on FreeBSD/amd64 and possibly Solaris/sparc.
The number of file descriptors in the message was not
determined correctly.

15 years agoShow yyerror() parse errors on stderr on startup.
Jilles Tjoelker [Wed, 17 Jun 2009 22:37:19 +0000 (00:37 +0200)] 
Show yyerror() parse errors on stderr on startup.

Noticed by: spb

15 years agoCorrect clone command.
Jilles Tjoelker [Tue, 9 Jun 2009 16:46:40 +0000 (18:46 +0200)] 
Correct clone command.

15 years agoDisallow changing away status via /presence.
Jilles Tjoelker [Wed, 3 Jun 2009 22:01:57 +0000 (00:01 +0200)] 
Disallow changing away status via /presence.
Allowing this desynchronizes clients and servers that
do not know about this extension without good reason.
If you want to allow this, change it to spit out the
usual AWAY protocol.

15 years agoReject presence updates with too long keys, instead of truncating them
Jilles Tjoelker [Wed, 3 Jun 2009 21:49:50 +0000 (23:49 +0200)] 
Reject presence updates with too long keys, instead of truncating them
and causing soft assertion failures. Values are still
silently truncated though.

15 years agoAdd new constants for presence key/value lengths
Jilles Tjoelker [Wed, 3 Jun 2009 21:38:07 +0000 (23:38 +0200)] 
Add new constants for presence key/value lengths
instead of overloading NICKLEN/TOPICLEN.

15 years agoRemove two obsolete constants.
Jilles Tjoelker [Wed, 3 Jun 2009 21:18:07 +0000 (23:18 +0200)] 
Remove two obsolete constants.

14 years agoMerge
Stephen Bennett [Tue, 8 Dec 2009 19:23:32 +0000 (19:23 +0000)] 
Merge

14 years agoRevert all presence-related changes
Stephen Bennett [Tue, 8 Dec 2009 19:22:55 +0000 (19:22 +0000)] 
Revert all presence-related changes

14 years agoFix crashes when there are no alias blocks in the conf.
Jilles Tjoelker [Sat, 5 Dec 2009 19:48:02 +0000 (20:48 +0100)] 
Fix crashes when there are no alias blocks in the conf.

15 years agoRemove two obsolete constants.
Jilles Tjoelker [Wed, 3 Jun 2009 21:18:07 +0000 (23:18 +0200)] 
Remove two obsolete constants.

15 years agoDo not send two 792 numerics when changing a metadata from one non-empty value to...
Jilles Tjoelker [Wed, 3 Jun 2009 18:44:37 +0000 (20:44 +0200)] 
Do not send two 792 numerics when changing a metadata from one non-empty value to another.

15 years agoCorrect minimum parameter counts for PRESENCE.
Jilles Tjoelker [Wed, 3 Jun 2009 18:03:15 +0000 (20:03 +0200)] 
Correct minimum parameter counts for PRESENCE.

15 years agoENCAPs cannot come from local clients, no need to check.
Jilles Tjoelker [Wed, 3 Jun 2009 17:57:27 +0000 (19:57 +0200)] 
ENCAPs cannot come from local clients, no need to check.

15 years agoRemove special CAP presence handling of /whois away message.
Jilles Tjoelker [Wed, 3 Jun 2009 17:54:49 +0000 (19:54 +0200)] 
Remove special CAP presence handling of /whois away message.
This cannot work because /whois is executed remotely too
and CAPs aren't known remotely.

15 years agopresence: m_presence module: Use safer get_metadata() where appropriate, to avoid...
William Pitcock [Tue, 2 Jun 2009 07:55:45 +0000 (02:55 -0500)] 
presence: m_presence module: Use safer get_metadata() where appropriate, to avoid crash possibilities.

15 years agopresence: send..._with_capability...(): don't send if the client does not have the...
William Pitcock [Tue, 2 Jun 2009 07:48:22 +0000 (02:48 -0500)] 
presence: send..._with_capability...(): don't send if the client does not have the capab but isn't on a channel

15 years agopresence: delete_metadata(): Free from the right heap.
William Pitcock [Tue, 2 Jun 2009 07:46:37 +0000 (02:46 -0500)] 
presence: delete_metadata(): Free from the right heap.

15 years agopresence: Use RPL_WHOISMETADATA.
William Pitcock [Tue, 2 Jun 2009 07:44:31 +0000 (02:44 -0500)] 
presence: Use RPL_WHOISMETADATA.

15 years agopresence: Add _butone() variant of sendto_common_channels_local_with_capability().
William Pitcock [Tue, 2 Jun 2009 07:38:38 +0000 (02:38 -0500)] 
presence: Add _butone() variant of sendto_common_channels_local_with_capability().

15 years agopresence: Broadcast presence changes to peer clients with CLICAP_PRESENCE.
William Pitcock [Tue, 2 Jun 2009 07:36:18 +0000 (02:36 -0500)] 
presence: Broadcast presence changes to peer clients with CLICAP_PRESENCE.

15 years agopresence: Declare RPL_METADATACHG.
William Pitcock [Tue, 2 Jun 2009 07:32:07 +0000 (02:32 -0500)] 
presence: Declare RPL_METADATACHG.

15 years agopresence: Add sendto_common_channels_local_with_capability(), used for broadcasting...
William Pitcock [Tue, 2 Jun 2009 07:28:02 +0000 (02:28 -0500)] 
presence: Add sendto_common_channels_local_with_capability(), used for broadcasting presence updates.

15 years agopresence: Declare RPL_WHOISMETADATA.
William Pitcock [Tue, 2 Jun 2009 07:19:37 +0000 (02:19 -0500)] 
presence: Declare RPL_WHOISMETADATA.

15 years agopresence: If CLICAP_PRESENCE is enabled, then RPL_AWAY is replaced by the "away"...
William Pitcock [Tue, 2 Jun 2009 07:17:42 +0000 (02:17 -0500)] 
presence: If CLICAP_PRESENCE is enabled, then RPL_AWAY is replaced by the "away" keyword in the presence dataset.
As such, only fall back to legacy RPL_AWAY if CLICAP_PRESENCE is not set on source_p.

15 years agopresence: Add CLICAP_PRESENCE.
William Pitcock [Tue, 2 Jun 2009 07:14:44 +0000 (02:14 -0500)] 
presence: Add CLICAP_PRESENCE.
This will enable broadcasting presence updates on channels.

15 years agopresence: Remove no longer used away_heap.
William Pitcock [Tue, 2 Jun 2009 07:08:45 +0000 (02:08 -0500)] 
presence: Remove no longer used away_heap.

15 years agopresence: Replace stagnant free_away() call with delete_metadata(..., "away").
William Pitcock [Tue, 2 Jun 2009 07:06:18 +0000 (02:06 -0500)] 
presence: Replace stagnant free_away() call with delete_metadata(..., "away").

15 years agopresence: Remove user.away, replaced by a metadata entry.
William Pitcock [Tue, 2 Jun 2009 07:03:51 +0000 (02:03 -0500)] 
presence: Remove user.away, replaced by a metadata entry.
Cache the metadata retrieval value where feasible for minimal performance impact.

15 years agopresence: Make set_metadata() erase any old metadata for an entry.
William Pitcock [Tue, 2 Jun 2009 06:53:05 +0000 (01:53 -0500)] 
presence: Make set_metadata() erase any old metadata for an entry.

15 years agopresence: Add get_metadata().
William Pitcock [Tue, 2 Jun 2009 06:50:40 +0000 (01:50 -0500)] 
presence: Add get_metadata().

15 years agopresence: Add m_presence module. This provides an ENCAP s2s interface and lowlevel...
William Pitcock [Tue, 2 Jun 2009 06:45:43 +0000 (01:45 -0500)] 
presence: Add m_presence module.  This provides an ENCAP s2s interface and lowlevel client interface.

15 years agopresence: Add set_metadata() and delete_metadata().
William Pitcock [Tue, 2 Jun 2009 06:41:44 +0000 (01:41 -0500)] 
presence: Add set_metadata() and delete_metadata().

15 years agopresence: Declare RPL_METADATASET and RPL_METADATAREM.
William Pitcock [Tue, 2 Jun 2009 06:32:09 +0000 (01:32 -0500)] 
presence: Declare RPL_METADATASET and RPL_METADATAREM.

15 years agopresence: Declare MetadataEntry struct.
William Pitcock [Tue, 2 Jun 2009 06:29:58 +0000 (01:29 -0500)] 
presence: Declare MetadataEntry struct.

15 years agopresence: Create presence metadata tracking structures where appropriate.
William Pitcock [Sat, 30 May 2009 18:30:57 +0000 (13:30 -0500)] 
presence: Create presence metadata tracking structures where appropriate.

15 years agostruct Client: add a dictionary to contain presence metadata.
William Pitcock [Sat, 30 May 2009 18:17:39 +0000 (13:17 -0500)] 
struct Client: add a dictionary to contain presence metadata.

15 years agoAutomated merge with ssh://hg.atheme.org//hg/charybdis
William Pitcock [Sat, 30 May 2009 18:16:01 +0000 (13:16 -0500)] 
Automated merge with ssh://hg.atheme.org//hg/charybdis

15 years agoAdd irc_dictionary.h to stdinc. I'm lazy.
William Pitcock [Sat, 30 May 2009 18:15:58 +0000 (13:15 -0500)] 
Add irc_dictionary.h to stdinc.  I'm lazy.

15 years agoRemove check_banned_lines() code duplication.
Jilles Tjoelker [Thu, 21 May 2009 21:11:32 +0000 (23:11 +0200)] 
Remove check_banned_lines() code duplication.
We can just call check_dlines(), check_klines() and check_xlines().

15 years agoRemove some obsolete unused definitions.
Jilles Tjoelker [Thu, 21 May 2009 14:01:46 +0000 (16:01 +0200)] 
Remove some obsolete unused definitions.

15 years agoAllow ctcp replies through floodcount after ctcp'ing a large group.
Jilles Tjoelker [Sun, 17 May 2009 18:52:16 +0000 (20:52 +0200)] 
Allow ctcp replies through floodcount after ctcp'ing a large group.

A large group is any $$ or $# or a channel with more than
floodcount/2 local members, checked on each server separately.
Note that floodcount checks are done on the sender's server.

The special treatment is active for 15 seconds.

15 years agoCheck the return value on rb_pipe.
Jilles Tjoelker [Wed, 13 May 2009 20:07:57 +0000 (22:07 +0200)] 
Check the return value on rb_pipe.
from ircd-ratbox (r26515) (androsyn)

15 years agoRemove unused inet_socketpair() code, this is in libratbox now.
Jilles Tjoelker [Tue, 12 May 2009 21:56:28 +0000 (23:56 +0200)] 
Remove unused inet_socketpair() code, this is in libratbox now.

15 years agoMore rb_socketpair() return value checks.
Jilles Tjoelker [Tue, 12 May 2009 21:30:46 +0000 (23:30 +0200)] 
More rb_socketpair() return value checks.
from ircd-ratbox (r26507) (androsyn)