diff options
| author | 2017-10-19 11:55:17 +0100 | |
|---|---|---|
| committer | 2017-10-19 14:58:21 +0100 | |
| commit | 3c7e105d09c99ed0b74a63bef68d5f2a1cbd8cff (patch) | |
| tree | c0fc69bbcd77322a7ea2fad4bb32a5c107479041 /src/wildcard.cpp | |
| parent | Add a constructor to OperInfo and use it to set the type name. (diff) | |
Switch from std::stringstream to irc::spacesepstream.
The latter is more suited to the things we have previously been
using std::stringstream for.
Diffstat (limited to 'src/wildcard.cpp')
| -rw-r--r-- | src/wildcard.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wildcard.cpp b/src/wildcard.cpp index 6711f953a..4a313af76 100644 --- a/src/wildcard.cpp +++ b/src/wildcard.cpp @@ -109,9 +109,9 @@ bool InspIRCd::MatchCIDR(const char* str, const char* mask, unsigned const char* bool InspIRCd::MatchMask(const std::string& masks, const std::string& hostname, const std::string& ipaddr) { - std::stringstream masklist(masks); + irc::spacesepstream masklist(masks); std::string mask; - while (masklist >> mask) + while (masklist.GetToken(mask)) { if (InspIRCd::Match(hostname, mask, ascii_case_insensitive_map) || InspIRCd::MatchCIDR(ipaddr, mask, ascii_case_insensitive_map)) |
