From 7906b8273dedc41659495df3cc4e0b3dd5d516c9 Mon Sep 17 00:00:00 2001 From: danieldg Date: Mon, 1 Mar 2010 00:42:04 +0000 Subject: Cap masks and bans at 250 characters git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12575 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/helperfuncs.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/helperfuncs.cpp') diff --git a/src/helperfuncs.cpp b/src/helperfuncs.cpp index 779bc94cc..c5cfdd79a 100644 --- a/src/helperfuncs.cpp +++ b/src/helperfuncs.cpp @@ -173,6 +173,9 @@ bool InspIRCd::IsValidMask(const std::string &mask) if (exclamation != 1 || atsign != 1) return false; + if (mask.length() > 250) + return false; + return true; } -- cgit v1.2.3