]> git.netwichtig.de Git - user/henk/code/inspircd.git/commit
Add ERR_INVALIDMODEPARAM for responding to invalid mode params.
authorPeter Powell <petpow@saberuk.com>
Sat, 27 Jan 2018 13:05:14 +0000 (13:05 +0000)
committerPeter Powell <petpow@saberuk.com>
Mon, 29 Jan 2018 11:52:13 +0000 (11:52 +0000)
commitd5a6054948502625d7f0c235f6faaeea58734de5
treea43e95ded07dca92c9d3659e331a88cb8e0b7b21
parent3398ce7e50f1c269e8221df04e1eefb52d54c820
Add ERR_INVALIDMODEPARAM for responding to invalid mode params.

Currently on invalid modes we do a combination of different things:

1. Send a custom mode-specific numeric (which often collides with
   other modes).

2. Send a server notice.

3. Do absolutely nothing.

This new numeric is a generic way of handling invalid parameters
when setting a mode that avoids all of the mistakes of the previous
behaviour.
12 files changed:
include/numeric.h
include/numericbuilder.h
include/numerics.h
src/mode.cpp
src/modules/m_chanfilter.cpp
src/modules/m_chanhistory.cpp
src/modules/m_exemptchanops.cpp
src/modules/m_joinflood.cpp
src/modules/m_kicknorejoin.cpp
src/modules/m_messageflood.cpp
src/modules/m_nickflood.cpp
src/modules/m_repeat.cpp