diff options
author | Adam <Adam@anope.org> | 2010-11-19 14:16:42 -0500 |
---|---|---|
committer | Adam <Adam@anope.org> | 2010-11-19 14:16:42 -0500 |
commit | 3445f4d680db60fc5c96d7c20b9cb25ee26cce6b (patch) | |
tree | 2d085473900a7fc7f9354db1a41a80ee4fc6a080 /src/misc.cpp | |
parent | aab915f2e98d11aa9037526543711d0f95ccef9b (diff) |
Fixed parsing cidr masks
Diffstat (limited to 'src/misc.cpp')
-rw-r--r-- | src/misc.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/misc.cpp b/src/misc.cpp index d00bbbcc6..9bb323b3d 100644 --- a/src/misc.cpp +++ b/src/misc.cpp @@ -1190,7 +1190,7 @@ bool str_is_cidr(const Anope::string &str, uint32 &ip, uint32 &mask, Anope::stri { Anope::string s; /* There's a CIDR mask here! */ - cidr = convertTo<uint16>(s.substr(1), s, false); + cidr = convertTo<uint16>(cidr_str.substr(1), s, false); /* Bail out if the CIDR is invalid or the string isn't done yet */ if (cidr > 32 || !s.empty()) return false; |