#include "inspircd.h"
-/* $ModDesc: Provides support to block all-CAPS channel messages and notices */
-
/** Handles the +B channel mode
*/
if (res == MOD_RES_ALLOW)
return MOD_RES_PASSTHRU;
- if (!c->GetExtBanStatus(user, 'B').check(!c->IsModeSet('B')))
+ if (!c->GetExtBanStatus(user, 'B').check(!c->IsModeSet(bc)))
{
int caps = 0;
const char* actstr = "\1ACTION ";
ServerInstance->Logs->Log("CONFIG", LOG_DEFAULT, "<blockcaps:percent> out of range, setting to default of 100.");
percent = 100;
}
- if (minlen < 1 || minlen > MAXBUF-1)
+ if (minlen < 1 || minlen > ServerInstance->Config->Limits.MaxLine)
{
ServerInstance->Logs->Log("CONFIG", LOG_DEFAULT, "<blockcaps:minlen> out of range, setting to default of 1.");
minlen = 1;