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
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
133755685e
Removal of ancient SVN ID's part one
2010-06-10 21:22:44 -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
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
Alexander F?r?y
360742bdf4
Use RPL_QUIETLIST and RPL_ENDOFQUIETLIST instead of RPL_BANLIST and
...
RPL_ENDOFBANLIST for channel mode +q.
2010-02-27 01:08:41 +01:00
JD Horelick
71ea606903
Make override WALLOPS actually send netwide this time.
2010-03-07 23:22:07 -05:00
B.Greenham
c1c91f9438
s/owner/admin/ throughout the source code and docs.
2010-03-07 23:18:39 -05:00
JD Horelick
34d8ef4d14
Change all override snotes to wallops to match m_o* and to
...
make it a lot more obvious when a oper is using override.
2010-03-07 22:42:51 -05:00
JD Horelick
c809010b89
Make +-a give you the appropriate error message if you don't have
...
the proper privs.
2010-03-07 21:57:00 -05:00
B.Greenham
bc4764aefd
Looks like irc_dictionary things cannot support more than one key with the same value. Therefore, a rework of +J and OACCEPT's metadata are required to make them work properly with multiple users.
2010-03-06 19:22:59 -05:00
JD Horelick
a039358ed0
Fix a typo
2010-03-05 19:18:38 -05:00
B.Greenham
67cecc2b22
Should just specify the name here.
2010-03-05 19:16:27 -05:00
B.Greenham
8e3b2b85c7
Clean up cmode norepeat's metadata when unsetting +K.
2010-03-05 19:10:24 -05:00
B.Greenham
2f39232fab
Fix the 'mode changes appear multiple times' bug.
2010-03-05 18:49:57 -05:00
B.Greenham
d3b90aaad3
Clean up +J to work nicely and properly.
2010-03-05 13:45:01 -05:00
JD Horelick
3da167f207
Really fix the ugly-ass desync by re-adding some code i accidentally
...
deleted on the first chmode.c override commit.
2010-03-04 04:28:53 -05:00
JD Horelick
e853274c16
Fix a warning which may fix a real ugly desync.
...
If this doesn't fix the desync, i have an idea of how to do so.
2010-03-04 04:22:14 -05:00
JD Horelick
cb097b8840
Don't discard self-oppings from remote override opers.
...
There's a small chance this could be incorrect.
Also, the final set of override cleanups.
2010-03-03 15:34:57 -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
b869e117f0
Woohoo! Override is complete barring a few possible cleanups in the futures.
2010-03-03 14:11:53 -05:00
JD Horelick
4ed822ed95
Add override support to ban/quiet, owner, op, halfop and voice.
2010-03-03 13:52:31 -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
1a9821cd51
Make it so that halfops cannot set +-h
2010-03-01 20:12: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
154760066c
There's no reason to use get_channel_access() in chm_forward, use is_any_op() instead.
2010-02-27 23:44:14 -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
JD Horelick
a4f6509ce1
more override stuff
2010-02-25 16:15:17 -05:00
JD Horelick
13a467bb98
Override part one.
2010-02-25 16:01:03 -05:00
JD Horelick
afe430eebb
Backed out changeset 677d7b5cbbcc
2010-02-25 15:47:08 -05:00
JD Horelick
c7c1673d10
bad
2010-02-25 15:46:42 -05:00
B.Greenham
2b3c7c29c3
Add chmode +G, which blocks messages in all caps.
2010-02-25 01:51:28 -05:00
B.Greenham
afd4834b50
Add chmode +N, which prevents nickchanges.
2010-02-25 01:14:38 -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
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
William Pitcock
92a7995129
Merge +C (no CTCP to channels) from ircd-seven.
2010-01-19 02:11:04 -06:00
Stephen Bennett
1229514e6d
/ is a host character and not a nick character, so make pretty_mask treat it as such
2009-04-20 08:42:41 -05:00
Jilles Tjoelker
0f3f5496b8
Remove obsolete comment.
2009-01-25 21:02:04 +01:00
Valery Yatsko
7608ef4933
A very draft version of extensions, which are adding can_join hooks for custom channel modes
2008-07-27 12:10:48 +04:00
Valery V Yatsko
2392eb24cd
Generating cflags bufs dynamically: one for RPL_MYINFO and one for
...
supported.c
2008-06-25 07:51:32 +04:00
Valery V Yatsko
57d299acbd
Merged find_orphaned_cflags and construct_noparam_modes in one function
...
as there's no reason to use them separetly
2008-06-25 07:13:58 +04:00
Valery V Yatsko
6b3b07a84e
New way of noparam mode search
2008-06-24 22:21:26 +04:00
Valery V Yatsko
058aa02c4a
New orphaned cflags implementation, now using chm_orphaned instead of
...
storing orphaned flags in a variable
2008-06-24 22:00:41 +04:00
Jilles Tjoelker
040c4408ed
Fix some tracking for cmode +r.
2008-06-25 19:40:12 +02:00
Jilles Tjoelker
c08f4515a9
Fix limits on simple modes.
...
Formerly some mode strings like +svvvv were not accepted.
2008-06-25 19:27:30 +02:00