JD Horelick
8c76e73bcf
commit c90f903a667ed5744b93b6b89892de4e8c045d17
...
Author: Stephen Bennett <spb@exherbo.org>
Date: Fri Dec 31 17:14:05 2010 +0000
Expire umode +p correctly if it's set via oper_umodes, as well as by user_mode. Bug found by tgies.
2011-01-19 15:15:55 -05:00
JD Horelick
bd73ea56ba
commit 90509b2e2a364471f2461367fd02c11c8ab3c72d
...
Author: Stephen Bennett <spb@exherbo.org>
Date: Fri Dec 31 17:11:50 2010 +0000
Don't allow opers without the override privilege to get +p via the oper_umodes config setting
2011-01-19 15:15:50 -05:00
B.Greenham
0258787d5d
Fix small bug in the VERSION/RPL_MYINFO stuff, as pointed out by init.
2011-01-19 11:28:16 -05:00
JD Horelick
4b631c0586
Send ERR_TOOMANYCHANNELS for each channel join that fails due to channel limits.
...
The reason why we do this is because some clients are dependent on receiving a numeric
for every channel join failure, even due to this limit where it can be assumed that
subsequent joins failed.
2010-12-15 00:02:47 -05:00
William Pitcock
dc34aae05e
Correct error message involving no fingerprint credentials or password credentials being available.
2010-12-14 21:25:44 -06:00
William Pitcock
5ac470475d
Add support for linking using SSL certificate fingerprints as the link credential rather than the traditional server-password pair.
2010-12-13 23:14:00 -06:00
JD Horelick
0284952c9f
Move cmode +N to cmode +d, so that extensions/m_roleplay can retain cmode +N and maintain a consistent interface with charybdis.
2011-01-19 23:40:21 -05:00
B.Greenham
5323ec7352
Move flood_attack_channel to channel.c so it can be used outside m_message.c
2010-12-11 16:11:54 -05:00
William Pitcock
359d4d5b20
chmode: Remove chm_regonly, a vestige from ratbox which doesn't apply to native charybdis (or shadowircd) networks.
2010-12-06 23:51:14 -05:00
William Pitcock
fa9fb0d66b
Use %u instead of %d.
2010-12-04 23:13:35 -06:00
William Pitcock
b67bc679f3
blacklist: Remove the sscanf() for the IPv4 blacklist check.
...
From ratbox r27061 (androsyn).
2010-12-04 23:11:04 -06:00
JD Horelick
ab72b3e800
Wallops (and log) upon setting/unsetting of +M or any hidden chmode.
...
(+M is currently the only hidden chmode)
2010-11-22 13:14:02 -05:00
JD Horelick
8071ad5acf
Fix a small warning.
2010-11-13 20:37:41 -05:00
William Pitcock
78ab5aa473
parse(): make reentrant
2010-10-24 21:02:32 -05:00
JD Horelick
64be6183f8
Fix a bug I caused. Whoops.
2010-10-25 20:11:10 -04:00
JD Horelick
0a2e2a35c8
A few more fixes. Part 3 of 2 I suppose.
2010-10-23 22:46:50 -04:00
JD Horelick
16d76e8659
Clang warning fixes part 2 of 2.
2010-10-23 22:32:31 -04:00
B.Greenham
07db71cda0
Fix VERSION and RPL_MYINFO to only show modes that are enabled. Also fix up some errors from the last commit.
2010-10-11 16:35:18 -04:00
B.Greenham
b7262e0cce
Return an error upon trying to set orphaned cmode, rather than just silently ignoring the mode command.
2010-10-11 14:27:47 -04:00
B.Greenham
4c16b692f3
Add channel::disabledmodes.
...
This replaces use_invex, use_except, and use_forward, although
those options are still used internally and will continue to work
for users, to maintain config compatibility between charybdis
and shadowircd.
2010-10-11 14:12:52 -04:00
B.Greenham
e0b0e08d25
Fix a bug that allowed users to set forwards to channels they lack ops in (and not set forwards to channels they have ops in).
2010-07-28 20:26:13 -04:00
B.Greenham
4023293674
Merge.
2010-10-11 11:58:39 -04:00
B.Greenham
90728edb58
Backed out changeset 3097ade953f5
...
Backout modesets.
They're overly invasive and a bit uglier than is required.
The same thing can be accomplished in a better way with another method.
2010-10-11 11:58:21 -04:00
Jilles Tjoelker
cc2a7258f1
Send only one ERR_MLOCKRESTRICTED per MODE command.
...
This agrees with other error messages from MODE.
2010-08-24 23:03:23 +02:00
JD Horelick
f10ec0c42e
Change ERR_MLOCKRESTRICTED to 742 as 735-739 seem for MONITOR extensions.
2010-09-11 13:55:06 -04:00
William Pitcock
fc579e36e7
Enforce TS rules on MLOCKs.
2010-08-23 20:22:59 -05:00
William Pitcock
c95fc52d5a
Send numeric 735 on MLOCK policy-restricted mode changes that are ignored.
2010-08-23 19:04:46 -05:00
William Pitcock
ed6565a5a0
Add ERR_MLOCKRESTRICTED (735) to reflect bounces caused by MLOCK.
2010-08-23 18:59:32 -05:00
B.Greenham
1fe75e33cc
mode api: Remove most modes from the chmode_table, and have them initialized in modeset files.
...
Modeset files are modules stored in shadowircd/modes. All they do is initalize
a set of modes on load, and orphan said modes on unload.
All cmodes not included in ircd-ratbox are now located in modeset files, rather
than being in the core. These modes no longer simply use defines, their
locations are stored in a the new struct module_modes. Each of these is set
when intializing the mode in the modeset files, and set to 0 when orphaning
the mode upon unloading the modeset file.
In addition, use_forward has been removed, as it is now obsoleted by modesets.
2010-07-02 19:09:46 -04:00
JD Horelick
ed6ad7a375
Change the DNSBL hit snomask to SNO_REJ (+r) as to not spam SNO_GENERAL
2010-06-23 15:01:49 -04:00
JD Horelick
40114db23c
Make DNSBL hits snote on hit. The snote displays nick, IP and what DNSBL they hit.
2010-06-23 13:44:33 -04:00
JD Horelick
133755685e
Removal of ancient SVN ID's part one
2010-06-10 21:22:44 -04:00
Jilles Tjoelker
dfea673fca
Make number_per_ident actually apply to unidented connections as well,
...
as documented in reference.conf.
Noticed by: spb
2010-06-09 21:22:47 +02:00
Stephen Bennett
c554add299
Allow the final parameter of MLOCK to be empty, to remove an existing mlock
2010-05-02 20:42:46 +01:00
Stephen Bennett
b72bd23a03
Rework ircd-side MLOCK enforcement: instead of trying to track modes locked on or off, instead keep a simple list of mode letters that are locked, and reject any change to those modes.
2010-04-30 22:01:21 +01:00
JD Horelick
2d10c55990
Branch merge
2010-09-11 13:31:13 -04:00
JD Horelick
ea84bfdeff
Backed out changeset c04f6578869c
2010-09-11 13:31:00 -04:00
JD Horelick
e09ea16973
"Import" changeset 1346:c57955c5225e from charybdis by hand.
2010-09-11 13:23:35 -04:00
Jilles Tjoelker
b96db1e3fe
Fix crash if identify_service/identify_command were not specified in ircd.conf.
2010-04-18 13:54:03 +02:00
B.Greenham
2498a1b577
Fix some valgrind warnings.
2010-05-27 18:03:51 -04:00
JD Horelick
1add004b97
Change kicknorejoin to be hardcoded to 2 seconds instead of a
...
configurable opton.
2010-05-21 04:20:45 -04:00
JD Horelick
f0e0e5672d
Backed out changeset 9bd802724b74
2010-05-21 04:08:05 -04:00
JD Horelick
446c7d4f57
Remove +J chmode (KICKNOREJOIN)
2010-05-21 03:29:07 -04:00
B.Greenham
41e026e175
Don't throw a warning if general:default_operhost is empty.
2010-04-07 15:08:02 -04:00
B.Greenham
67537fefa4
Add OPERHOST option to /set, which allows you to change the host operators get on oper up (provided they don't have a specific one already defined in their operator block.)
2010-04-07 15:04:42 -04:00
JD Horelick
1434082803
Change config option for ident_timeout to default_ident_timeout as jilles
...
recommended. Also update the TODO. Also, cocks.
2010-04-05 16:29:11 -04:00
JD Horelick
e50ed244f4
Add a configuration option for ident_timeout.
2010-04-05 15:28:44 -04:00
JD Horelick
015b28a06c
Branch Merge
2010-04-04 16:25:20 -04:00
Jilles Tjoelker
6795400d0a
New custom channel mode API allowing reloading such modules.
...
Additionally, attempting to use too many modes or two times
the same letter is now detected and prevented.
Modules now request that a channel mode be added/orphaned,
instead of ugly manipulation from which that request had
to be guessed.
Slight changes are needed to modules that provide channel modes.
From the old API, one important function has been made static,
the other important function has been renamed, so loading old
modules should fail safely.
2010-04-01 01:16:16 +02:00
B.Greenham
92b26e74a9
Make chm_staff (staff only modes) only settable if you have ops in the channel in question.
...
If operators need to set such modes in a channel where they don't have ops, that's what override/omode are for.
2010-03-31 11:22:32 -04:00