diff options
author | Peter Powell <petpow@saberuk.com> | 2013-05-17 01:35:04 +0100 |
---|---|---|
committer | Peter Powell <petpow@saberuk.com> | 2013-06-06 01:06:47 +0100 |
commit | cc79342f50ce345657fca16c90f1d37a9228d8ad (patch) | |
tree | 0a283f12a2e4eae07e7c0f43a1f254d59cad98e0 /src/modules/m_blockcaps.cpp | |
parent | 047e29179766076146e7bd6126a883f4f3c95150 (diff) |
Compare to ServerLimits::MaxLine instead of MAXBUF.
Diffstat (limited to 'src/modules/m_blockcaps.cpp')
-rw-r--r-- | src/modules/m_blockcaps.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_blockcaps.cpp b/src/modules/m_blockcaps.cpp index 0e1fa945f..c13549db8 100644 --- a/src/modules/m_blockcaps.cpp +++ b/src/modules/m_blockcaps.cpp @@ -119,7 +119,7 @@ public: 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; |