aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_nonotice.cpp
diff options
context:
space:
mode:
authorGravatar Peter Powell2018-01-01 18:01:47 +0000
committerGravatar Peter Powell2018-01-03 22:33:29 +0000
commit40514d0ba8279309f350a47652fffef745662926 (patch)
tree14c772d5e39b6a52398e5dcac46abac6c06851e2 /src/modules/m_nonotice.cpp
parentFix m_chanhistory sending the history notice directly to the user. (diff)
Improve the method that blockcaps uses to block messages.
Previously it had a list of upper case letters and assumed that all other characters were lower case. This method is flawed as it can be evaded by using non-alphanumeric characters. The new method takes a list of lower case letters as well as upper case letters and ignores any letters which are not listed in one of the two lists. The majority of the code for this was borrowed from the m_anticaps module in inspircd-extras.
Diffstat (limited to 'src/modules/m_nonotice.cpp')
0 files changed, 0 insertions, 0 deletions