]> jfr.im git - irc/rqf/shadowircd.git/commit
mode api: Remove most modes from the chmode_table, and have them initialized in modes...
authorB.Greenham <redacted>
Fri, 2 Jul 2010 23:09:46 +0000 (19:09 -0400)
committerB.Greenham <redacted>
Fri, 2 Jul 2010 23:09:46 +0000 (19:09 -0400)
commit1fe75e33ccfe31692f20633945cea14db888118a
tree5ae39197a1ba0ff87e0941b5d5fd1c641adf2587
parented6ad7a3756992ad8c65ab11376e827f8e086013
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.
27 files changed:
Makefile.in
configure
configure.ac
doc/example.conf
doc/reference.conf
extensions/chm_quietunreg_compat.c
extensions/m_okick.c
include/channel.h
include/s_conf.h
modes/Makefile.in [new file with mode: 0644]
modes/charybdis.c [new file with mode: 0644]
modes/shadowircd.c [new file with mode: 0644]
modules/core/m_join.c
modules/core/m_kick.c
modules/core/m_message.c
modules/core/m_mode.c
modules/core/m_part.c
modules/m_info.c
modules/m_invite.c
modules/m_knock.c
src/channel.c
src/chmode.c
src/ircd.c
src/newconf.c
src/s_conf.c
src/s_user.c
src/supported.c