Sam Dodrill
aa294a3a54
Support for channel owner mode added
...
This is a lot like the previous channel owner mode patch, except the
documentation that previously said "admin" now says "owner" in comments.
src/channel: Kicking logic for owner mode fixed
src/channel: Document the kick/deop logic
decruft: remove temporary files
2013-09-13 11:45:38 -07: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
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
William Pitcock
fc579e36e7
Enforce TS rules on MLOCKs.
2010-08-23 20:22:59 -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
fb06d910df
SVN Id removal part two
2010-06-10 21:28:15 -04: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
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
f135c53751
Make PRIVMSG @#channel and PRIVMSG +#channel go to halfops and admins as well as chanops.
...
6.1 is now feature complete.
2010-04-07 16:53:59 -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
Jilles Tjoelker
9b9d818b32
Add propagated resvs, like klines and xlines.
2010-03-27 16:13:57 +01:00
William Pitcock
28805dc5fc
Add propagation of MLOCK state for simple modes.
...
Special modes like +j can be tracked easily just by adding the necessary
code to parse them to set_channel_mlock(). This will cover propagation
as well.
2010-03-07 23:13:39 -06:00
William Pitcock
dc45456c96
struct Channel: add mode_lock structure to the channel object.
2010-03-07 21:41:06 -06:00
William Pitcock
34f6a40e79
struct Mode: add off_mode bitfield to describe disabled channel modes.
2010-03-07 21:40:34 -06:00
B.Greenham
473d0842db
Fix some compiler warnings that I generated by accidentally copying something twice.
2010-03-17 02:19:18 -04:00
B.Greenham
c1c91f9438
s/owner/admin/ throughout the source code and docs.
2010-03-07 23:18:39 -05:00
B.Greenham
6a97cac667
Make channel_metadata_time_add accept a regular value as well as a time value.
2010-03-05 11:57:48 -05:00
B.Greenham
0b370fcc63
There's no reason to have two nearly identical structs for metadata, move metadata struct to ircd.h and use it for both channel and user metadata.
2010-03-05 00:51:40 -05:00
B.Greenham
8bced6dc39
Add *_metadata_clear and start using them.
2010-03-05 00:39:18 -05:00
B.Greenham
104becbf7f
Add channel_metadata_time_add, a local only form of metadata that stores time values. And use it to make +J work.
2010-03-05 00:18:56 -05:00
B.Greenham
6f659342dc
Add channel metadata system.
2010-03-04 15:08:16 -05:00
JD Horelick
1cdd8fdfd7
Framework for hidden (only opers can see/set them) chmodes.
...
The first one of these is +M and the actual extension which handles
+M will be added next commit.
2010-03-03 14:35:54 -05:00
JD Horelick
eccd1c58d2
Initial support for 'noisy' oper-override of channel modes, using omode-type code. Supports simple modes at present.
2010-03-02 19:54:59 -05:00
B.Greenham
70e4cb8615
Fix a bug I introduced by being a massive idiot.
2010-03-01 15:01:11 -05:00
B.Greenham
23b98f3f5a
Add blank +K (norepeat) chmode, though it does nothing yet.
2010-02-28 23:06:42 -05:00
B.Greenham
82f8e812f5
Add full support for +a (owner) and +h (halfop) chmodes.
2010-02-28 02:35:48 -05:00
B.Greenham
40c6b59b63
Add is_halfop() and is_owner() and start using them in the new functions.
2010-02-27 21:53:46 -05:00
B.Greenham
b3b2ed9780
Add can_kick_deop() and use it in m_kick.
2010-02-27 21:27:05 -05:00
B.Greenham
bbc6973347
Move is_chanop_voiced() to a function in channels.c in preperation for +ah.
2010-02-27 19:40:52 -05:00
B.Greenham
d1c7eccf6a
Add is_any_op() in preperation for adding +ah, start using it instead of is_chanop() in a few places.
2010-02-27 19:20:01 -05:00
B.Greenham
846aa234b8
Add the +J channelmode and config options, though they don't do anything yet.
2010-02-26 00:30:39 -05:00
B.Greenham
c279d43b75
Add has_common_channel(), which is needed by umode +G.
2010-02-25 19:15:13 -05:00
JD Horelick
4355dbd3c9
branch merge
2010-02-25 15:12:18 -05:00
JD Horelick
47fab428b1
Backed out changeset 65db6ca26281
2010-02-25 15:11:43 -05:00
B.Greenham
2b3c7c29c3
Add chmode +G, which blocks messages in all caps.
2010-02-25 01:51:28 -05:00
B.Greenham
ea4041ece9
Automated merge with ssh://shadowircd/uranium/shadowircd/
2010-02-25 01:14:49 -05:00
B.Greenham
afd4834b50
Add chmode +N, which prevents nickchanges.
2010-02-25 01:14:38 -05:00
JD Horelick
44a8fbc29e
Actually add +p umode and expiry code. It currently does nothing though.
2010-02-24 21:53:45 -05:00
B.Greenham
f9e91eceaa
Add chmode +E, which prevents ops from using /kick on channels where it is set.
2010-02-23 18:14:43 -05:00
JD Horelick
677e21a450
Constify the header too :D
2010-02-23 02:53:44 -05:00
JD Horelick
9230426e7a
More moving
2010-02-23 02:52:01 -05:00
JD Horelick
67b90240c4
move user_join() to channels.c
2010-02-23 02:48:33 -05:00
JD Horelick
080bb5cf25
Start moving parts of join to channels.c so they can be used in more places.
2010-02-23 02:41:26 -05:00
B.Greenham
7e6c9180da
Add chmode +D, which blocks CTCP ACTION.
2010-02-23 01:08:42 -05:00
B.Greenham
6afd4b916f
Add chmode +T, which blocks notices.
2010-02-23 00:49:24 -05:00